Blackbeard
Well-known member
Jake has been helping a bit...but we seem to have hit a wall.
The old urls with vBSEO were like this
http://www.domain.com/forums/taurus/146919-taurus-740-slim-showing-its-true-colors.html
(currently giving a 404)
However the new url looks like this
http://www.domain.com/threads/taurus-740-slim-showing-its-true-colors.146919/
So we are keeping the ID of the url.
Jake suggested to use
The suggested htaccess that seemed to work for Jake previously was
any help would be excellent.
I'm far from a nginx expert, or moderate. However, I can edit the conf and restart nginx pretty well.
The old urls with vBSEO were like this
http://www.domain.com/forums/taurus/146919-taurus-740-slim-showing-its-true-colors.html
(currently giving a 404)
However the new url looks like this
http://www.domain.com/threads/taurus-740-slim-showing-its-true-colors.146919/
So we are keeping the ID of the url.
Jake suggested to use
or the htaccess to nginx converter suggestedlocation ~* ^/forums/.+\.html$ {
rewrite [^/]+/([0-9]+)-[^\.]+\.html$
/threads/$1/ last;
}
rewrite ^/forums/[^/]+/([0-9]+)-[^.]+.html$ /threads/$1/ permanent;
The suggested htaccess that seemed to work for Jake previously was
This doesn't quite work.RewriteEngine On
RewriteRule ^forums/[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
any help would be excellent.
I'm far from a nginx expert, or moderate. However, I can edit the conf and restart nginx pretty well.