Solved

Correct 301 Redirect Usage?

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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