Solved

Correct 301 Redirect Usage?

Posted on 2006-11-22
4
180 Views
Last Modified: 2010-03-04
I'm changing the file extension of my main index file from .html to .php, therefore I've chosen to use a 301 redirect for SEO purposes, so that I don't lose my current PageRank, backlinks, etc.

So in my .htaccess file I would use:

Redirect 301 /oldindex.html http://www,domain,com/newindex.php

Now, am I supposed to delete the old index file once I create the new one? OR do I keep the old index AND the new index in the same directory?

Also, how long should I keep the 301 redirect active? I've read from some people that it should be kept active forever, but wouldn't common sense tell us that it's safe to remove the 301 redirect once the search engines replace the old index with the new one?

Thanks.
0
Comment
Question by:lightmatrix
4 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 140 total points
ID: 17995014
After the redirect works, You may remove the old file.
There's no suggestion how long You should keep the redirect in place. Forever seems to be safest ;)
0
 
LVL 13

Assisted Solution

by:rhickmott
rhickmott earned 140 total points
ID: 17995117
If the redirect works the old page will NEVER be accessed as apache will simply kick them onto the new page and not serve it so its safe to delete.

As for how long thats entirely up to you. Theres no harm in leaving it active, once the search engines have updated their records requests for the old one will vanish but general sense says there is always some search engine nobody has heared about who will use it at one point or another.

You *can* always use a rewrite so that that a request for x.html will serve up x.php if you use a dynamic page indexing system such as page.php?action=y then search engines end to favour a url of x.htm rather than the former.


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now