301ing with ASP.NET
Sat, 07/12/2008 - 14:49 — cactus
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();
- Comment
- 158 reads
User login
Menu
Who's online
There are currently 0 users and 0 guests online.
Latest Articles
Powered by Drupal - Design by Artinet - © 2007 SEO Cactus











