Announcement

Collapse
No announcement yet.

Answer: Redirect From Old Forum to New Forum

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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]
    Joshua Rubin, Admin, GreenMachines.net
    Green Corporate Responsibility Forums

  • #2
    I moved this to quick tips because I felt it would be easier to find here.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment

    Working...
    X