Forum Moderators: open

Message Too Old, No Replies

ASP redirect

to an external site

         

tonynoriega

3:08 pm on Nov 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



is this not the proper code to put into my asp page to redirect to an external site? I have now come to find that Google says its not "friendly"...

thanks all..

<%@ Language=VBScript %>
<%
Response.Redirect ("http://www.externalsite.com")
%>

washstone

3:24 pm on Nov 6, 2006 (gmt 0)

10+ Year Member



Not sure if it is SE friendly or not, but certainly an IIS redirect is.

craigedmonds

11:16 pm on Nov 6, 2006 (gmt 0)

10+ Year Member



I think you are looking for this....

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

[edited by: rogerd at 6:11 pm (utc) on Nov. 7, 2006]

defanjos

12:06 am on Nov 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Be careful doing a 301 redirect
What exactly do you want to do?

tonynoriega

5:01 pm on Nov 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well i have this list that google says are my 404 page not found errors. there are about 50 of them. These pages are from waaaaaaay back, before i was even at this company.

so i created the specific file and used the 301 moved permanently redirect to point them to the most current page that is relevant to what the old file used to be.

one of them needs to be pointed to an external site and was an old ASP page. so, is this the best method to point to that external site?

thanks

defanjos

9:31 pm on Nov 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would do a 301 for pages within the same domain, and would do a 302 for pages going to another domain.