301ing with ASP.NET


You could put this in your code-behind pages or even your global.asax file.

string oldPath =HttpContext.Current.Request.Url.PathAndQuery;
string newUrl = "http://www.seocactus.com"+oldPath;

Response.Clear();
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location", newUrl);
Response.End();


User login

Who's online

There are currently 0 users and 1 guest online.

Powered by Drupal - Design by Artinet - © 2007 SEO Cactus