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
- 724 reads
User login
Menu
Who's online
There are currently 2 users and 1 guest online.
Online users
- jakpogjijvkhen
- 1svafbyldmdov
Latest Articles
Powered by Drupal - Design by Artinet - © 2007 SEO Cactus











