spacer spacer   Follow @Webconfs
 SEO Tools  15 Minute SEO  SEO Tutorial  SEO Articles  SEO Quiz  SEO Forums  SEO Comics  SEO Glossary  SEO Puzzle  Web Tools  SEO Software  Web Traffic  SEO Services 
spacer  SEO Login

How to Redirect a Web Page



 Services
FREE SEO Packages NEW
-->  FREE SEO Score
 New! Linkdex SEO Suite
 1000 Visitors - Now Just $7.49
 Link Building Services
 Do Your Own SEO
 
 SEO Tools
 Similar Page Checker
 Search Engine Spider Simulator
 Backlink Anchor Text Analysis
 Backlink Builder
 Backlink Summary
 Keyword Density Cloud
 Search Engine Friendly Redirect Check
 Reciprocal Link Checker
 Domain Stats Tool
 Domain Age Tool
 Keyword Playground
 Website Keyword Suggestions
 URL Rewriting Tool
 Keyword-Rich Domain Suggestions
 Do Your Own SEO
 


 Web Tools
 HTTP / HTTPS Header Check
 Whois Lookup
 Domain Age Tool
 IP to City
 File Search Engine
 Screen Resolution Simulator
 SEO Bookmarklets
 
 SEO Articles spacer
 Promoting your book on amazon
 Google Adsense Alternatives
 The Google Panda Update
 How to Analyze Your SEO Competitors
 How to Optimize for Baidu
 SEO for Local Businesses
 Mobile search engine optimization
 SEO Friendly Designers
 Boost SEO with Google Adwords
 YouTube Traffic
 Make money website
 Top 10 Costly Link Building Mistakes
 How to get traffic
 How to get traffic from Facebook
 How to get traffic from Twitter
 HTML 5 and SEO
 SEO Careers during a Recession
 Bing Optimization
 SEO Mistakes
 SEO as a Career
 Traffic from Social Bookmarking sites
 Choosing a SEO Company
 Keyword Difficulty
 Optimizing for MSN
 Web Directories and SEO
 Importance of Sitemaps
 How to Build Backlinks
 Reinclusion in Google
 Optimizing Flash Sites
 Bad Neighborhood
 What is Robots.txt
 Google Sandbox
 Optimizing for Yahoo
 The Spider View of your Website
 Avoid SEO over-optimization
 Country Specific Search Engines
 The Age of a Domain Name
 Importance of Backlinks
 Dynamic URLs vs. Static URLs
 Duplicate Content Filter
 More SEO Articles >>
 
 Seo Tips
 301 Redirects
 SEO Hosting
 Page Layout Ideas
 Stop Words
 
 Contact
 Advertise with us
 Suggestions / Comments


spacer
Search Engine Optimization

spacer

spacer

spacer

spacer


spacer

301 Redirect

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".

You can Test your redirection with Search Engine Friendly Redirect Checker

Below are a Couple of methods to implement 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'

ColdFusion Redirect

<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="www.new-url.com">


PHP Redirect

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: www.new-url.com" );
?>


ASP Redirect

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


ASP .NET Redirect

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","www.new-url.com");
}
</script>


JSP (Java) Redirect

<%
response.setStatus(301);
response.setHeader( "Location", "www.new-url.com/" );
response.setHeader( "Connection", "close" );
%>


CGI PERL Redirect

$q = new CGI;
print $q->redirect("www.new-url.com/");


Ruby on Rails Redirect

def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to "www.new-url.com/"
end


Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) www.newdomain.com/$1 [R=301,L]

Please REPLACE www.newdomain.com in the above code with your actual domain name.

In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.


Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ www.domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.


How to Redirect HTML

Please refer to section titled 'How to Redirect with htaccess', if your site is hosted on a Linux Server and 'IIS Redirect', if your site is hosted on a Windows Server.




  spacer
Copyright 2005-2006 webconfs.com
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.