SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: Bizarre 301 redirect issues

Threaded View

  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2001
    Location
    New York
    Posts
    494
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bizarre 301 redirect issues

    So here is one that has me stumped. I'm trying to redirect posts from an old forum that I've converted from phpbb to vbulletin. In the .htaccess file, I've put in the following:

    Redirect 301 /viewtopic.php?f=11&t=12 http://www.new.com/forum/showthread.php?t=23344

    That doesn't do a thing. If you go to http://www.old.com/viewtopic.php?f=11&t=12 , it simply shows the post on the old site. Now if I enter:

    Redirect 301 / http://www.new.com/forum/

    That will redirect the root directory to the forum directory on the new site properly. What I can't get are the individual pages to work. If I enter the following:

    Redirect 301 / http://www.new.com/forum/
    Redirect 301 /viewtopic.php?f=11&t=12 http://www.new.com/forum/showthread.php?t=23344

    I get page not found errors because the server is looking at the root based redirect and sending me to the new site with the old extension

    http://www.old.com/viewtopic.php?f=11&t=12

    That obviously doesn't exist. Has anyone ever seen a case where redirect is ignoring individual pages?
    Last edited by ScallioXTX; Jan 16, 2012 at 12:57. Reason: delinkified example URLs
    My Free Legal Advice Site -- I also buy forums and websites!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •