PDA

View Full Version : Problems with 301 Redirect


kavicarter
11-05-2008, 12:31 PM
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>

raymondp
11-12-2008, 12:40 PM
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 (http://www.DiscountASP.NET)