• 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


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


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


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/
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?.
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.