Wednesday, 18 September 2013

301 redirect not working for page ending in /

301 redirect not working for page ending in /

I'm trying to set up a 301 redirect a WordPress page ending in / to a .php
page on my site. I've tried this:
Redirect 301 http://www.mydomain.com/blog/old-page/
http://www.mydomain.com/new-page.php
After searching this site I also tried this:
RewriteRule ^http://www.mydomain.com/blog/old-page/ý$
http://www.mydomain.com/new-page.php [R=301,L]
Neither one works. Any idea what I'm doing wrong?

No comments:

Post a Comment