Home  >  Search Engine Optimisation  >  301 Redirects
You are not logged in:   Control Panel  |  Messages  |  Your Account  |  Tools
On-Site Elements
301 Redirects
More About 301 Redirects
301 Redirects are a search engine friendly form of redirects that allow users to be directed to a pages new location. A redirect traditionally is put in place when a page changes its filename, extension or location. When the page has moved, search engines still return the old url, which equates to a broken link. Placing a redirect in place means that when the old page is requested, the user is automatically forwarded onto the new page location.

There are many different types of redirect. The reason for this is because of the nature of website technology, and the way that the page has changed its target URL. For example, a temporary redirect is known as a 302 redirect, this tells search engines that although the location has changed, it is only temporary, therefore search engines tend not to update search listings for these redirects.

301 redirects are known as a permanent redirect, this is because of the 301 code which in HTML standards equates to a permanent status. When using a 301 redirect, search engines such as Google, Yahoo and MSN will update their site records to return the pages new location instead of the old location, this process however can be slow. 301 redirects are vital, as they prevent masses of broken links, and the potential loss of rankings and traffic as a result. 

301 redirects are known as search engine friendly redirects, because they do not pose as a risk to rankings. These redirects are very common for implementation, and are very easy to implement, in PHP, and ASPX (Classic ASP). They can also be implemented via alternative means such as the configuration of .htaccess files. Also, within certain types of web server technology, the redirect can even be implemented in a dummy file that mimics the file name of the old filename to have been moved.

For example, lets say you have a product page under the following URL,

www.mywebsite.com/product/kettle.php

if you have a new target page, you would create the target page as

www.mywebsite.com/product/latest-kettles.php

And in the old kettle.php file you would replace the code with the re-direct code, which would mean that the old file exists, but the users would not see it, instead they would be redirected to the appropriate page.
Implementing 301 Redirects
Implementing 301 redirects has become incredibly easy to do, below are some commonly used redirect implementations.

301 in PHP
Implementing a 301 redirect in PHP is very easy, simply apply the following code to the old file,

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.mywebsite.com/product/pagename.php" );
?>

Change the location to the new filename, and apply this code to the old filename, this will then form a 301 redirect.

301 in .NET  (ASPX)
Implementing a 301 in Microsoft's .NET platform is not as easy, but fairly straight forward for technicians.

Open up your IIS (internet services) application, once you have connected to your webspace server, select the file to redirect. Right click on the file and select the options for the page. Once you have the panel up, select the radio button "Redirection to a URL". Enter the new location, and then select "Exact URL entered above" and "A Permanent Redirection for this resource".

Than finish by clicking apply. Once this has been completed, the new redirect will be in place.

301 in Classic ASP
Simply add the following code to the old file that is to redirect the visitor:

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%>

Testing your Redirect
To test the status of your re-direct, simply search for a SERVER HEADER CHECKER in Google, once found, enter the URL and wait for the response, you should get a 301 message, if so than your redirect is in place, if not, go back and double check everything has been done correctly.

Part of the Foley-Computers Group.
Search Engine Optimisation
Link Building
Keyword Research
Competitor Analysis
Search Engine Marketing
Pay Per Click
Website Design
Article Writing
Assertive-Media © 2002 - 2009 All Rights Reserved.
Please note that all material found on this website is copyright Assertive-Media. We protect our website and its contents using Copyscape.
Website Competitor Profiling
Off-Site Search Engine Optimisation
Google Analytics
Free SEO Audit
SEO Knowledge Base
Web Development
E-Commerce
Sitemap |  About Us |  Contact Us |  Privacy Policy  | Who We Are
Bookmark and Share
Bookmark and Share
Related Content
Implementing 301 Redirects

Setting up Permanent Redirects


Assertive-Media offer a comprehensive search engine optimisation service. If you would like to enquire about our 301 redirect implementation simply fill out our enquiry form, or call us on 01582 524 969.

To enquire about our 301 redirect implementation services simply call us on 01582 524 969.

Enquiry Form


Search Engine Optimisation

On-Site Elements
Title Tags
Meta Tags
Header Tags
Page Content
Anchor Text
Internal Links
URL Structure
Keyword Emphasis

External Elements
301 Redirects
302 Redirects
HTTP Status Codes
Canonicalisation
Robots Text File
Crawl Permissions
404 Errors
Sub-Domains
Domain Age
Domain Keyword Utilisation
Geographic Targeting

Get a FREE SEO Audit on your website today