Problems with 301 Redirect

Discussion in 'Site Design, SEO, Google and Site Promotion' started by kavicarter, Nov 5, 2008.

  1. Hi, I'm working on a website designed by someone else. I believe the pages were builting using ASP. I tried putting the ASP redirect code in the page; however, I'm putting the code on the page, but the page isn't redirecting to the new site. The webpage I'm trying to work on is:


    http://spaceodysseyusa.com/Default2.asp?Page=69


    Here is a snippet of the code:
    <TD vAlign=top class="main"><%@ Language=VBScript %>
    <%
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location", "http://www.espn.com/"
    %>



    Hello</TD>
     
  2. Kavi,

    where are you putting this tag at? The redirect command typically goes at the top of the page before the html tag.

    <%@ Language=VBScript %>
    <%
    Response.Status='301 Moved Permanently'
    Response.AddHeader 'Location','http://www.espn.com/'
    %>

    <html>

    rcp
    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page