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!
More SEO Content
Double 301 Redirects
#1
Posted 09 September 2004 - 12:44 PM
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
Posted 09 September 2004 - 01:06 PM
#3
Posted 09 September 2004 - 02:10 PM
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
Posted 09 September 2004 - 02:40 PM
#5
Posted 09 September 2004 - 02:48 PM
<%
response.redirect "URL"
%>
on my ASP page so I'm guessing this is a 302?
#6
Posted 09 September 2004 - 03:15 PM
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
Posted 09 September 2004 - 03:25 PM
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
Posted 09 September 2004 - 03:44 PM
#9
Posted 09 September 2004 - 05:11 PM
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
Posted 10 September 2004 - 02:53 AM
You cannot write header output (ie Send text to the browser) then send a header with a status code and redirect.
#11
Posted 13 September 2004 - 02:10 AM
Response.AddHeader "Location", "URL"
What do you put for "location"?
Cheers,
Dave
#12
Posted 13 September 2004 - 04:19 AM
for example
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








