Redirect working but URL not changing

Discussion in 'Apache' started by nawor, Mar 10, 2010.

  1. #1
    I'm hoping someone can help me with this problem.

    I have set up a new site with different file names and I'm using a 301 redirect in the .htaccess file from the old file names to the new file names like this

    RewriteRule ^contact.php$ http://www.mysite.com/index.php?main_page=contact_us [R=301,L]

    When I type in the old url. i.e. www.mysite.com/contact.php the new page displays correctly. However, the URL is not changing in the browser to display the new page URL index.php?main_page=contact_us

    Can anyone tell me what the problem is? I want the URL in the browser to also change.

    Google currently still indexing the old page. I think this is effecting SERPS.

    Thanks
     
    nawor, Mar 10, 2010 IP