Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects


January 26, 2010

How to Optimize your Page Rank

Those SEO-savvy web programmers and search engine optimization specialists are familiar with the problem caused by changing a previously ranked URL to a new URL.  For example, an old page that a search engine has ranked on page 1 may be www.domainname.com/about/default.aspx.  For a variety of reasons, it may be necessary to change the URL to www.domainname.com/about-us/.  The new URL will be identified by search engines as a new page, even though it is the same page.  The PageRanking will be lower for the new "about-us" URL and the "/about/default.aspx" URL will drop its ranking.  This is sometimes known as "Split PageRanking" and we want to solve this problem to optimize the page.  Web designer, Jeff Sarmiento, summarizes the importance of avoiding split pageranking well.

There is a set of HTTP headers created at the top of each page, not displayed on the page.  We can work with the response object to help optimize the new URL and eliminate split-ranking.  The best HTTP status code used for redirection is 301.  This code communicates to search engines that the content is located elsewhere.

Content that follows the "Location: " code in the HTTP header is the new permanent location for the page.  Utilizing the 301 status code help spiders and search engines get the message that the old URL is obsolete and should be replaced with the new URL.  It also communicates to search engines that the ranking from the previous URL should be credited to the new one.  The 301 status code is the most important status code for search engine optimization.

One way to resolve split page-ranking is redirecting with ASP.NET and IIS. Through ISAPI Rewrite you can use the 301 status code to permanently redirect the old URL to the new URL.  It is an effective way of permanently redirecting an entire group of pages or redirecting URLs one-by-one.  A downfall is that ISAPI rewrite must be installed on the server.  The ISAPI Rewrite method is not fully explained in this article.  One company that offers an ISAPI rewrite tool covers this topic in-depth. 

Another method is to create the permanent redirect, through code, dynamically on the page.   For various reasons, some individual pages cannot be generalized in an ISAPI rule.  It is still essential to give search engines the message that the URL has been permanently redirected.  You can manipulate the response headers using the Response object provided by the current HttpContext object in ASP.NET  

The HTTP header on the example at the top of this article would be
 
   Location: http://www.domainname.com/about-us/

Utilizing the location code along with the 301 status code effectively achieves the permanent redirect.
 
Below is the code for permanently redirecting the example URL we used above:
 
C#
 
   if (Request.Path == "/about/default.aspx")
      {
       Response.Status = "301 Moved Permanently";
       Response.AddHeader("Location", "http://www.example.com/about-us/");
      }
VB
 
   if Request.Path = "/about/default.aspx" then

      Response.Status = "301 Moved Permanently"

      Response.AddHeader("Location", "http://www.example.com/about-us/")

   end

In summary, it is a good idea to use the HTTPContext object and the 301 status code to communicate to search engines that a page has permanently been moved.  This optimizes the page by crediting the pageranking from the previous URL to the new URL.  It is a way of eliminating split-PageRanking effects by changing the URL of an exiting page.

Happy Optimizing! 

Did you like this post?

Sign up for our Tips and Trends list and we'll let you know each week when we have a new one.

12 Ways to Get Your Business Growing Again

Categories

Web Design (26)
Web Development (35)
Misc. Website (21)
Search Engine Optimization (95)
Social Media Marketing (111)
Local Search Marketing (24)
Content Marketing (35)
PPC Advertising (31)
Digital Marketing (123)
Marketing Automation (24)
Sales Automation (19)
Company News (10)
Other (27)

Archives

Feeds




Related Posts


Comments:

Response to: Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects
Friday, January 29, 2010
davidbaer says:

Often we forget the little guy, the SMB, in our discussions of the comings and goings of the Internet marketing industry. Sure there are times like this when a report surfaces talking about their issues and concerns but, for the most part, we like to talk about big brands and how they do the Internet marketing thing well or not so well.

Response to: Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects
Friday, January 29, 2010
Joanna Smith says:

As you browse through our site, you can see that we create tremendous results for small and medium-sized businesses (SMB). The internet marketing specialists at Sales and Marketing Technologies keep up on the latest trends in SEO techniques. Our clients, big or small, get improved web presence in a short amount of time helping them increase exposure and profits for their business.

Response to: Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects
Monday, February 1, 2010
WP Themes says:

Nice brief and this fill someone in on helped me alot in my college assignement. Thanks you seeking your information.

Response to: Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects
Wednesday, February 17, 2010
Consulenza Web Marketing says:

Thanks for providing such useful information. I really appreciate your professional approach.

Response to: Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects
Monday, March 8, 2010
Laura Enstein says:

A very useful info. thanks

Response to: Optimizing Search Engine PageRanking by Using Dynamic 301 Redirects
Thursday, March 25, 2010
david says:

like this information good work thanks.