Jump to content

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

Subscribe to HRA Now!

 



SEO Class in Chicago, IL

Learn How To Optimize Your Website on July 26, 2013


Looking for personalized in-depth SEO training among your peers?



High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!



 


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!



Photo
- - - - -

Double 301 Redirects


  • Please log in to reply
11 replies to this topic

#1 kevinsource

kevinsource

    HR 3

  • Active Members
  • PipPipPip
  • 54 posts
  • Location:CT

Posted 09 September 2004 - 12:44 PM

I have a question on placing a redirecting a page using a 301 that has already been redirected to.

example: www.mysite.com/one.htm redirects to www.mysite.com/two.htm...is it a bad idea to reditect www.mysite.com/two.htm to www.mysite.com/three.htm?

We made a mistake in the beginning and now are not sure what to do.

#2 Shane

Shane

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 850 posts
  • Location:Atlanta, GA

Posted 09 September 2004 - 01:06 PM

If there are no longer any links to one.htm, you could safely remove it altogether. If there are still links to it, just change its 301 to point to three.htm instead of two.htm. That will get you out of the double redirect.

#3 Gandor

Gandor

    HR 2

  • Members
  • PipPip
  • 13 posts

Posted 09 September 2004 - 02:10 PM

I have pretty much the same set up and I would like to know if it's a big NONO for SE's.

I have an old .htm pages and I'm using IIS 301 redirect that redirects to an "redirect.ASP?page=xyz.asp" page that I pass variables to the .ASP page and base on the variables it redirects it to the correct new .ASP pages.

is this a SE's no-no's? Thanks!

#4 Shane

Shane

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 850 posts
  • Location:Atlanta, GA

Posted 09 September 2004 - 02:40 PM

Does redirect.asp do a 301 or 302?

#5 Gandor

Gandor

    HR 2

  • Members
  • PipPip
  • 13 posts

Posted 09 September 2004 - 02:48 PM

I just do:

<%
response.redirect "URL"
%>

on my ASP page so I'm guessing this is a 302?

#6 Shane

Shane

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 850 posts
  • Location:Atlanta, GA

Posted 09 September 2004 - 03:15 PM

Yep! That's right. Which means your first 301 isn't doing you much good. (A permanent redirect to a temporary redirect is ultimately just a temporary redirect.)

You can change that fairly easily, though. Replace that one line of code with these:

Response.Status "301 Moved Permanently"
Response.AddHeader "Location", "URL"

However, I'd probably change your setup to have the old HTM's just do the 301 themselves. That would eliminate the problem altogether. You could do that simply by doing a Server.Transfer to your Redirect.asp instead of 301'ing, if you didn't want to add 301 code to each one of them.

#7 Gandor

Gandor

    HR 2

  • Members
  • PipPip
  • 13 posts

Posted 09 September 2004 - 03:25 PM

Shane,
The first 301 redirect to "redirect.asp?page=xxx.asp" is our page to let our visitors know that the page they are trying to find has been moved and that they'll be know redirected to the new page. That said, putting "301" code on each htm is not an option.

So your saying If I put "301" code on "redirect.asp?page=xxx.asp" page to make it a "301" redirect it won't be SE's NO-NO's?

right now since I'm doing "301" then "302" it's a SE's NO-NO and I can get penalized? Thanks!

#8 Shane

Shane

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 850 posts
  • Location:Atlanta, GA

Posted 09 September 2004 - 03:44 PM

How are you showing the user a message and giving them a 301 or 302 redirect? I've never seen a way to do that. Can you PM me a sample URL?

#9 Gandor

Gandor

    HR 2

  • Members
  • PipPip
  • 13 posts

Posted 09 September 2004 - 05:11 PM

Shane,
I sent you a PM. Anyways, I show the message to the use once they get redirected to "redirect.asp" page then after 10 seconds they get redirected to the new page.

#10 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 5,949 posts
  • Location:Blackpool UK

Posted 10 September 2004 - 02:53 AM

then you must be using meta redirects or javascript.
You cannot write header output (ie Send text to the browser) then send a header with a status code and redirect.

#11 Dave

Dave

    HR 4

  • Active Members
  • PipPipPipPip
  • 148 posts
  • Location:Nottingham, UK

Posted 13 September 2004 - 02:10 AM

QUOTE(Shane @ Sep 9 2004, 04:15 PM)
Response.Status "301 Moved Permanently"
Response.AddHeader "Location", "URL"



What do you put for "location"?

Cheers,

Dave

#12 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 5,949 posts
  • Location:Blackpool UK

Posted 13 September 2004 - 04:19 AM

"Location" is the header name and you change the URL to point to the new destination document.

for example
CODE
response.addheader "Location","http://www.mynewdomain.com/newdirectory/"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users