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:
   if (Request.Path == "/about/default.aspx")
       Response.Status = "301 Moved Permanently";
       Response.AddHeader("Location", "http://www.example.com/about-us/");
   if Request.Path = "/about/default.aspx" then

      Response.Status = "301 Moved Permanently"

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


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


Web Design (21)
Web Development (25)
Misc. Website (20)
Search Engine Optimization (85)
Social Media Marketing (94)
Local Search Marketing (19)
Content Marketing (23)
PPC Advertising (20)
Digital Marketing (94)
Marketing Automation (13)
Sales Automation (12)
Company News (11)
Other (15)



Related Posts


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.

Get in touch
with us
Thank you for your interest in Sales & Marketing Technologies. We offer a FREE, no-cost, no-obligation consultation. If you have any questions regarding our products or services or need a quote, please fill out this form. A representative from our company will be in contact with you within 1 business day. Too slow? Call us at 407.682.2222.

Sales & Marketing Technologies
© Copyright 2020 Sales & Marketing Technologies, Ltd. All rights reserved.