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

XF 1.2 MyBB to xenForo help with links

#1
Hi, I am moving my MyBB forum to XenForo, IDs are same. My question is what I need to add to htaccess to redirect old links to new xenForo SEO links.

This is example some of links of my active MyBB forum (conversion is done via xenForo MyBB convertor)

FORUM - http://www.site.com/bh-tuning-garaza-f-49.html
SUBFORUM - http://www.site.com/njemacka-vozila-f-72.html

THREAD:
http://www.site.com/kopcanje-pojacala-t-85975.html
http://www.site.com/renault-clio-4-rs-t-84576.html

With PAGINATION:
http://www.site.com/uvod-t-2761-2.html

Tnx for any help.
 

Jake Bunce

XenForo moderator
Staff member
#4
Add this to the top of the .htaccess file in the web root:

Code:
RewriteEngine On

RewriteRule ^.+-f-([0-9]+)\.html$ /forums/$1/ [R=301,L]
RewriteRule ^.+-t-([0-9]+)\.html$ /threads/$1/ [R=301,L]
RewriteRule ^.+-t-([0-9]+)-([0-9]+)\.html$ /threads/$1/page-$2 [R=301,L]
For pagination, make sure threads in XF display the same number of posts per page as MyBB. The option is at:

admin.php?options/list/messageOptions