PDA

View Full Version : How to redirect old phpbb urls to vbulletin?



993ti
08-19-2006, 07:43 AM
Recently upgraded a phpbb forum but i lost all the hits.
I wanted to redirect the links in google (viewtopic.php?t=xxxx) to the vbulletin pages.
How do i do this?
I tried this (found on DP):

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^viewforum.php?f=([0-9]+)$ /forumdisplay.php?f=$1
RewriteRule ^viewtopic.php?p=([0-9]+)$ /index.php
But that didn't work :(

993ti
08-19-2006, 06:33 PM
Now using this (saw it in another thread where noppid posted a similar code)


RewriteRule ^viewtopic.php(.*) http://www.domain.com/showthread.php [R=301,L]
RewriteRule ^viewforum.php(.*) http://www.domain.com/forumdisplay.php [R=301,L]
The topics in the serps with the old url don't go to the correct topic now, but it works :)
Btw, will google also update the title or will it just change the url?