1. 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

Discussion in 'Installation, Upgrade, and Import Support' started by Neso, Sep 1, 2013.

  1. Neso

    Neso Member

    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



    Tnx for any help.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I need to know the URL of the XF forum (web root or subdirectory?). That affects the targets of the rewriterules. Then I can provide exact instructions for your redirects.
  3. Neso

    Neso Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Add this to the top of the .htaccess file in the web root:

    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:


Share This Page