• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 vB4 rewrite rules to xenForo

#1
Hi, I am finishing transfer from vb4 to xenforo, and last thing is rewrite rules, if somebody can post exact rules that I need to add in htaccess, I have found some topic here related to this, but I do not wish to do something wrong with wrong rewrites.

Old URLs:
http://www.site.com/forums/236-satelite-com
http://www.site.com/forums/458-fatelite-com-Najsave-obavidjesti-prisjedlozi
http://www.site.com/forums/233-Strad-Filmovi/padge11 (Pagination)

http://www.site.com/threads/77418-Donsacifje-amp-Donatori
http://www.site.com/threads/111547-Sfatvenus-E1-Settfings

http://www.site.com/members/3764-Admini

I will use xenForo SEO URLs
 
Last edited:

Jake Bunce

XenForo moderator
Staff member
#4
Assuming XF is also in the web root... add these rules to the top of the .htaccess file in your web root (XenForo's .htaccess file):

Code:
    #make exception for XF's URL format
    RewriteRule ^(forums|threads|members)/[^\.]+\.[0-9]+/ - [S=1]
    #redirect vB's URL format
    RewriteRule ^(forums|threads|members)/([0-9]+)-.*$ /$1/$2/? [R=301,L]
 
#5
Assuming XF is also in the web root... add these rules to the top of the .htaccess file in your web root (XenForo's .htaccess file):

Code:
    #make exception for XF's URL format
    RewriteRule ^(forums|threads|members)/[^\.]+\.[0-9]+/ - [S=1]
    #redirect vB's URL format
    RewriteRule ^(forums|threads|members)/([0-9]+)-.*$ /$1/$2/? [R=301,L]
Yes it is in root, thank you it is working :)
 

Jake Bunce

XenForo moderator
Staff member
#7