Solved

Correct 301 Redirect Usage?

Posted on 2006-11-22
4
181 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to set default webapp for host 6 45
how to use external config file with Spring MVC 4 105
Configure a Local PHP Interpreter for Phpstorm 2 246
AWS EC2 & RDS Instance 5 34
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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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