Home Hosting Domains IT Services Support Contact Us
MyAccount PortalClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloads

Knowledgebase
You are here: MyAccount Portal > Knowledgebase > Web Development & Coding > How do I perform a 301 re-direct using an asp file? (Windows Only)

How do I perform a 301 re-direct using an asp file? (Windows Only)

To perform a 301 redirect, you need to do the following:

  1. Create a file on the server with the title of the page name your redirecting from. IE: oldpage.asp
  2. Open the file in a text editor or asp editor program. Notepad will do if you do not have an ASP editor or have access to one.
  3. Insert the following code into the file:

    <%@ Language=VBScript %>
    <%
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location","http://www.mynewurl/mynewpage.asp"
    %>

  4. Save and exit.

The redirect should now be working.



Was this answer helpful?

Add to Favourites
Print this Article

Also Read


Network Status Client Area Knowledgebase Datacentre  
 
Terms of ServicePrivacy PolicyCustomer Security