Floris
31st October 2007, 04:45 AM
Tip of the day : Answer: Redirect From Old Forum to New Forum
Original thread (http://www.vbulletin.com/forum/showthread.php?t=247216&goto=newpost) posted on vBulletin.com by : jnr on : Tue, 30 Oct 2007 22:31:19 GMT
Answer: Redirect From Old Forum to New Forum]I posted this as a response but I'm posting it here as a topic because it seems to be a recurring issue and I had to dig outside of vB.com and vB.org to get the answer.
With a assist from Jake Bunce of the vBulletin team, who suggested I use the RewriteEngine, I tracked down the solution. I modified the code I found at http://www.webmasterworld.com/forum92/1917.htm. Here's an example of how to do it:
To redirect defunct link
http://www.greenmachines.net/forumdisplay.php?f=16
to
http://www.greenmachines.net/forumdisplay.php?f=31
put this in your .htaccess file:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^f=16$
RewriteRule ^forumdisplay\.php$ http://www.greenmachines.net/forumdisplay.php?f=31 [R=301,L]
vBulletin-Fans.com hopes you learned something from this great tip and if you also have a great tip you can submit it on vBulletin-Tutorials.com here (http://www.vbulletin-tutorials.com/newthread.php?do=newthread&f=591), or on vBulletin.com here (http://www.vbulletin.com/forum/forumdisplay.php?f=109). Don't forget to subscribe to this forum (http://www.vbulletin-tutorials.com/subscription.php?do=addsubscription&f=591) to get daily tips on how to best secure, optimize, manage and operate your vBulletin powered forum.
Floris & Staff
vBulletin Fans Network
http://www.vBulletin-Tutorials.com/
Original thread (http://www.vbulletin.com/forum/showthread.php?t=247216&goto=newpost) posted on vBulletin.com by : jnr on : Tue, 30 Oct 2007 22:31:19 GMT
Answer: Redirect From Old Forum to New Forum]I posted this as a response but I'm posting it here as a topic because it seems to be a recurring issue and I had to dig outside of vB.com and vB.org to get the answer.
With a assist from Jake Bunce of the vBulletin team, who suggested I use the RewriteEngine, I tracked down the solution. I modified the code I found at http://www.webmasterworld.com/forum92/1917.htm. Here's an example of how to do it:
To redirect defunct link
http://www.greenmachines.net/forumdisplay.php?f=16
to
http://www.greenmachines.net/forumdisplay.php?f=31
put this in your .htaccess file:
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{QUERY_STRING} ^f=16$
RewriteRule ^forumdisplay\.php$ http://www.greenmachines.net/forumdisplay.php?f=31 [R=301,L]
vBulletin-Fans.com hopes you learned something from this great tip and if you also have a great tip you can submit it on vBulletin-Tutorials.com here (http://www.vbulletin-tutorials.com/newthread.php?do=newthread&f=591), or on vBulletin.com here (http://www.vbulletin.com/forum/forumdisplay.php?f=109). Don't forget to subscribe to this forum (http://www.vbulletin-tutorials.com/subscription.php?do=addsubscription&f=591) to get daily tips on how to best secure, optimize, manage and operate your vBulletin powered forum.
Floris & Staff
vBulletin Fans Network
http://www.vBulletin-Tutorials.com/