Welcome! Log In Create A New Profile


Converting vBSEO to Xenforo (htaccess to NGINX)

Posted by Dildy 
Converting vBSEO to Xenforo (htaccess to NGINX)
March 31, 2014 09:50AM

I'm migrating from vBSEO + vBulletin 3.8.x to the new Xenforo.

The old urls with vBSEO were like this


(currently giving a 404)

However the new url looks like this

So we are keeping the ID of the url.

Someone suggested to use
[quote]location ~* ^/forums/.+\.html$ {
rewrite [^/]+/([0-9]+)-[^\.]+\.html$
/threads/$1/ last;
} [/quote]
rewrite ^/forums/[^/]+/([0-9]+)-[^.]+.html$ /threads/$1/ permanent;

The suggested htaccess that seemed to work
RewriteEngine On

RewriteRule ^forums/[^/]+/([0-9]+)-[^\.]+\.html$ /threads/$1/ [R=301,L]
This doesn't quite work.

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.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready