301 redirect ASP

Discussion in 'ASP.NET / ASP.NET Core' started by ming ho, Apr 1, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi,

    New guy here... not sure if this is the right place to post about this. Mods, please move it to appropriate section if necessary.

    I'm trying to do a 301 redirect with these 2 pages:
    FROM: http://ustiendao.net/default.aspx
    TO: http://www.ustiendao.net:8080/ExtBook/ZSSC/index.jsp

    I've tried doing a google on "301 redirect ASP" and all I've pretty much found is this bit of code:

    <%@ Language=VBScript %>
    <%
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location", "/new-page.asp"
    %>

    For the life of me, what is the LOCATION variable? I've tried different variations of links and it still does not work. All I get is this:


    PLEASE help! I don't have much experience with ASP and more importantly, I'm not much of a devo guy, I'm more of a design guy...

    Thank you all!!!
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    this is asp code and you named it with an ASP.NET extension.

    change it to .asp
     
  3. change which part to .asp?
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    the file name... change it from default.aspx to default.asp
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page