Blog Archive Thread, How To Do 301 Redirects on Multiple Platforms in BlackHat Forum; 301 redirect is the most efficient and Search Engine Friendly method for web page redirection. Its simple to implement once ...
-
How To Do 301 Redirects on Multiple Platforms
301 redirect is the most efficient and Search Engine Friendly method for web page redirection. Its simple to implement once you understand the process and it should preserve your search engine rankings for a particular page. If you have to change file names or move pages around, its the safest option. The code 301 is interpreted as moved permanently and it informs the search engine that the page is no longer at this location, it is over here now. In other words, it is much like a forwarding address at the post office for your mail.
Below are methods to implement Safe URL Redirection
IIS Redirect
- In internet services manager, right click on the file or folder you wish to redirect
- Select the radio titled a redirection to a URL.
- Enter the redirection page
- Check The exact url entered above and the A permanent redirection for this resource
- Click on Apply
Redirect in ColdFusion
<.cfheader statuscode=301 statustext=Moved permanently>
<.cfheader name=Location value=http://www.new-url.com>
Redirect in PHP
<!->Header( HTTP/1.1 301 Moved Permanently );
Header( Location: http://www.new-url.com );
?>
Redirect in ASP
<%
Response.Status=301 Moved Permanently Response.AddHeader Location, http://www.new-url.com
>
Redirect in ASP .NET
< script runat=server >
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = 301 Moved Permanently;
Response.AddHeader(Location,’http://www.new-url.com);
}
Redirect with htaccess
Create a .htaccess file (if does not exists) in your root directory.
Redirect permanent / http://www.new-url.com
Note: Get a free tool to create and edit HT Access files
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules