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

Mybb to xenforo migration. Need information regarding rewriting URLs

Discussion in 'Installation, Upgrade, and Import Support' started by gginni, Apr 21, 2013.

  1. gginni

    gginni Active Member

    Hello,

    I'm unable to redirect my old mybb threads to new xenforo threads. I will lose all the organic traffic if this problem will not be fixed. Here is my .htaccess file within forum directory:-

    Code:
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
     
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
     
    <IfModule mod_rewrite.c>
        RewriteEngine On
     
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
     
        #    This line may be needed to enable WebDAV editing with PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
     
  2. Mike

    Mike XenForo Developer Staff Member

    It's likely that you'll need a programmatic solution if you did a double import. Your IDs are unlikely to be the same. If you don't have a map for the IDs from the original import, it will be nigh impossible.
     
  3. gginni

    gginni Active Member

    Thanks for reply Mike ... Thread IDs and Post IDs are same as xenforo tables were empty... Even when I imported from mybb to phpbb3 , ids were same...

    Can anyone help me in doing programatical or htaccess redirection solution?? I just don't want to lose my organic traffic :(

    BTW xenforo platform created by you is awesome :).. I'm just loving it :) ... Way better than mybb :)
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This is the process I use to flatten the id maps for double imports, thereby allowing me to use Kier's redirect scripts in combination with appropriate rewrite rules:

    http://xenforo.com/community/thread...-to-xenforo-with-redirects.29979/#post-344747

    If you need specific help with this then I need example URLs of the same thread from MyBB and XF, and I need access to all 3 databases so I can confirm the id maps.
     
    Luxus likes this.
  5. gginni

    gginni Active Member

    Sent u via PM :)
     
  6. gginni

    gginni Active Member

    Thanks a lot Jake bro for solving my issue :)... you were too quick to solve this :)... thanks a lot bro for help :)

    I owe you a party ;)... do let me know if you come to India :p

    Now I can say that I have succesfully migrated to xenforo :cool:

    Thanks a lot everyone for help :)
     

Share This Page