301 Moved Permanently - Redirecting URLs with ASP
If you are utilizing .asp (Windows Active Server Pages) as the underlying technology of your Windows IIS hosted websites, there is a simple 301 permanent redirect method that you can utilize without involving a server administrator. This 301 method allows you to quickly implement a 301 Moved Permanently status from the old-page.asp to the new-page.asp. Here is how it works...
Take the old-page.asp that is being renamed or moved and remove all of the code. Place the below code in place of the old HTML/XHMTL.
<%@ Language=VBScript %>
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.yourdomain.com/new-page.asp"
private void Page_Load(object sender, System.EventArgs e)
Response.Status = "301 Moved Permanently";
Back | Tell A Friend | Search this Site
© 1998 - 2013 psacake.com
Send me One Million FREE Guaranteed Visitors