Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

How To Implement 301 Redirect On An Asp Site


  • Please log in to reply
4 replies to this topic

#1 websage

websage

    WebSage

  • Active Members
  • PipPipPipPipPip
  • 362 posts
  • Location:Arlington, VA, USA

Posted 18 February 2004 - 07:46 PM

Hello, a new client has default.asp which redirect automatically to a shopping card-driven content area like this:

<% link="http://www.website.c.../mydefault.asp" %>
<% response.Redirect(link) %>

Is this SE-friendly way to redirect? If not, how does one implement an ASP version of 301 Redirect for the default page?

Thanks in advance,

Mitko / WebSage

#2 mcanerin

mcanerin

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 2,242 posts
  • Location:Calgary, Alberta, Canada

Posted 18 February 2004 - 08:16 PM

Is this in IIS?

Because if it is you go: Internet Services Manager/<computer name>/<client website>
Then right click and: Properties/Home Directory

Then choose the radio button beside: A redirection to a URL

As far as I know ;)

Ian

#3 websage

websage

    WebSage

  • Active Members
  • PipPipPipPipPip
  • 362 posts
  • Location:Arlington, VA, USA

Posted 18 February 2004 - 08:37 PM

Yes, IIS. Thanks, Ian, I will see what I can do with the management console (it is a hosted site, of course).

Here is a programmatic solution from WMF:

<%
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", "http://www.newdomain.com/"
Response.End
%>

#4 mcanerin

mcanerin

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 2,242 posts
  • Location:Calgary, Alberta, Canada

Posted 18 February 2004 - 08:39 PM

Interesting. I run my own server so I just log in and click buttons - I never really have to do things programmatically. I expect that may change as I get more clients, however.

Thanks for the info ;)

#5 Vertster

Vertster

    Google wristbar installed

  • Active Members
  • PipPipPipPipPip
  • 327 posts
  • Location:Salt Lake City, Utah

Posted 19 February 2004 - 12:37 AM

Response.Redirect is a 100% server side redirect. Spiders have no problem following this, and I am not certain they can even tell what happened. Passing a 301 and location in the header works too. You should download webbug or use the header inspector in Firefox to see what each returns for a status code.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users