dbembibre
Active member
I convert my apache rewrite rule to nginx, in first place know if is correct, i guess that yes.
Apache
nginx
From a SEO perspective is better a redirect or a permant instruction, i want that google crawl the destination URL instead of origin url ??
Thanks to all
Apache
Code:
RewriteRule ^[^/]+/.+-([0-9]+)/ /threads/$1/? [R=301,L]
nginx
Code:
location / {
rewrite ^/[^/]+/.+-([0-9]+)/ /threads/$1/? redirect;
}
From a SEO perspective is better a redirect or a permant instruction, i want that google crawl the destination URL instead of origin url ??
Code:
location / {
rewrite ^/[^/]+/.+-([0-9]+)/ /threads/$1/? redirect;
}
OR
location / {
rewrite ^/[^/]+/.+-([0-9]+)/ /threads/$1/? permanent;
}
Thanks to all