PDA

View Full Version : How to 301 redirect old URL to new URL using .htaccess file?



PGGO
July 20, 2012, 12:30 AM
I’m wondering how I can add 301 redirect using .htaccess file, in order to redirect OLD URL to NEW URL.

I was trying to use a standard 301 code in .htaccess files, as following:
redirect 301 /old-url.html http://www.mysite.com/new-url/

However, this does nothing, rather it has a strange behavior in browser.

Any help or advice I will appreciate.
Thanks