Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

301 Redirect for Page Name Changes

I want to change a few of the page names in my site. Pretty sure I need to use a .htaccess file, which I know how to create and then upload to the root directory on my web host.


I'm also pretty sure of the code to use

Redirect 301 /previous-page.html http://www.xyz-site.com/new-page.html

What I can't seem to get right is the paths to use in the old and new field. It should be asy, but iWeb comes up with some pretty crazy URLs. As a test I changed one page name from Scanned to scanned.

This is the URL http://www.capecodupholstery.com/Photo-Gallery/Pages/scanned.html

I've tried several combinations with no luck.

Mac OS X (10.7.3), 12G Ram, AppleTV2, iPhone4, Airport

Posted on Feb 9, 2012 2:08 AM

Reply
Question marked as Best reply

Posted on Feb 9, 2012 4:14 AM

Here's how it works om my server :


http://home.wyodor.net/Photo-Gallery/Pages/Scanned.html


redirects to :


http://home.wyodor.net/Photo-Gallery/Pages/scanned.html


Here's how it works if the folders are empty :


http://home.wyodor.net/Photo-Gallery/

http://home.wyodor.net/Photo-Gallery/Pages/

17 replies

Feb 11, 2012 5:23 AM in response to Roddy

Just wanted to report that the Redirect 301 .htaccess is up and running. I could not get the htaccess file to work until the web host added a line of PHP code within the .htaccess file and then miraculously everything I was trying to do worked. I'm not very familiar with PHP so I'm not quite sure how it changed the actions of the Redirect 301.


So all my redirects for page name changes now work as expected and I of course updated my sitemap.xml. So it should be fun over the next few weeks to see the changes taking place in Google indexing. I just wanted to include a few sites I came across that were very helpful in reference to Redirects.


htaccess tools

301 Redirect Code Generator


User uploaded file

301 Redirect for Page Name Changes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.