Solved

Correct 301 Redirect Usage?

Posted on 2006-11-22
4
179 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
Comment Utility
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
Comment Utility
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

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…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 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

16 Experts available now in Live!

Get 1:1 Help Now