Need help with htaccess redirection

Discussion in 'HTML & Website Design' started by ziplock122949, Jan 11, 2011.

  1. #1
    I am having issues with redirecting traffic from an old site to a new site. I need to have the home page 301 redirect to the new home page (the old index.php). Unfortunately, the page names/links have changed on the new site so a basic redirect that points the old file names to the same file names on the new site is not possible (example.com/oldpage new location is test.com/newpage). Because of this, I have 301 redirects created for each of the old pages. All pages are redirecting properly except the main page. I have tried adding the following line, but is doesn't work
    Redirect 301 http://www.oldsite.com/ http://www.newsite.com/
    Code (markup):
    Any ideas?
     
    ziplock122949, Jan 11, 2011 IP
  2. ziplock122949

    ziplock122949 Active Member

    Messages:
    159
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    looks like it is working now, changed the line to
    Redirect 301 /index.php http://www.newsite.com/
    Code (markup):
    I tried this before but it didn't work, something probably didn't reload properly.
     
    ziplock122949, Jan 11, 2011 IP