Forum Moderators: open

Message Too Old, No Replies

Can you redirect in sequence?

Can you tell the browse to redirect to two sites in sequence in one header?

         

wariental

3:30 pm on Apr 20, 2009 (gmt 0)

10+ Year Member



I am aware that you can use a single redirect in a header and I am also aware that you can chain redirects across domains/urls. My question however is can you set a chain of redirects from one header in a sequence?

For example URL:A has a header that tells the browser to redirect to URL:B followed by URL:C (without having to get URL:B to redirect through a header).

Is this possible?

(i hope this makes sense..)

tedster

5:55 pm on Apr 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, as far as I know you can't tell a browser to go to many different urls with just one http header.

g1smd

7:46 pm on Apr 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The only way would be for URL B to have a
&url=
parameter appended, which is then detected and used to make the target URL in the next redirect.

Such an approach is very messy, does not pass PageRank, and open to a myriad of hacks where people will use your server and your redirect for a variety of activities which you don't want, and which will cause you many serious problems.

jdMorgan

8:39 pm on Apr 20, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't for the life of me figure out why you'd want to do this, as it's a usability nightmare, but if you insist, consider using an iFrame to include the first "redirect" page within a page on your own site, and then meta-refreshing that page to the final site.

Meta-refreshes are not server-side redirects, they are client-side "automatic page reloads." So do not expect search engines to treat these as they would treat "real" redirect responses from your server.

Jim

wariental

9:30 pm on Apr 20, 2009 (gmt 0)

10+ Year Member



Its not for SEO purposes :P

I thought about the iframe but was trying to see if its possible without it. Thanks all.