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

XF 1.2 PhpBB To xenforo redirect help

Discussion in 'Installation, Upgrade, and Import Support' started by Robdenio89, Jan 7, 2014.

  1. Robdenio89

    Robdenio89 New Member


    We have managed to complete our move from phpBB to Xenforo but now have the task of redirecting our old indexed urls to our new ones.

    We have most of our keywords ranked first page in Google and since the move we have lost most of our traffic so need to get the redirects up asap before we lose our rankings.

    If any one could help we would really appreciate it.
  2. Liam W

    Liam W Well-Known Member

  3. Robdenio89

    Robdenio89 New Member

    Thanks for your response Liam

    I have just tried to use the redirection script and installed as it says but i seem to be getting an error from all the urls

    "The requested URL /viewforum.php was not found on this server."

    Am i missing something or being a noob?
  4. Robdenio89

    Robdenio89 New Member

    Does anyone know if it would be possible to:

    Redirect just 5 urls that to my new ones?
  5. Brogan

    Brogan XenForo Moderator Staff Member

    You can enter individual URLs in .htaccess, which is what I did when I moved from phpBB (as there was no direct imnporter, nor redirection scripts).

    For example:
    RewriteCond %{QUERY_STRING} ^f=51&t=822$
    RewriteRule ^forum/viewtopic.php /community/pages/formula-one-overtaking/? [R=301,L]
    That will redirect that specific phpBB thread URL to the page node specified.
  6. Robdenio89

    Robdenio89 New Member

    So if i copy and past that into my .htacess file and change
    "forum/viewtopic.php /community/pages/formula-one-overtaking/?" Where would i put the xenforo url i want it to forward to?

    Never done much with html before sorry.
  7. Brogan

    Brogan XenForo Moderator Staff Member

    You need to change both parts.

    The original source phpBB URL - f=51&t=822, and the destination XenForo URL - /community/pages/formula-one-overtaking/
  8. Robdenio89

    Robdenio89 New Member

    ahh i see perfect!

    one last thing can i put this anywhere in the .htacess file or will it need to be placed in a certain location?.
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Any custom rewrite rules must come before the XenForo rewrite rules.
  10. Robdenio89

    Robdenio89 New Member

    Still comes up with an error when i do this..

    RewriteCond %{QUERY_STRING} www.snapchatforum.com/viewforum.php?f=5
    RewriteRule http://www.snapchatforum.com/forums/forum-lounge.5/ [R=301,L]
    RewriteCond %{QUERY_STRING} www.snapchatforum.com/viewforum.php?f=4
    RewriteRule http://www.snapchatforum.com/forums/support-center.4/ [R=301,L]
    RewriteCond %{QUERY_STRING} www.snapchatforum.com/viewforum.php?f=8&start=25
    RewriteRule http://www.snapchatforum.com/forums/find-snapchat-usersnames-18.8/ [R=301,L]
    RewriteCond %{QUERY_STRING} www.snapchatforum.com/viewforum.php?f=3&start=120
    RewriteRule http://www.snapchatforum.com/forums/introductions.3/ [R=301,L]

    This is the what the codes look like.

  11. Brogan

    Brogan XenForo Moderator Staff Member

    Look at the code I posted above and then compare it to yours.

    It needs to be formatted the same.

Share This Page