Click to See Complete Forum and Search --> : redirection question


dmf
05-03-2007, 06:11 PM
What would be the proper code to meta redirect (or otherwise) a page.. lets call it "home" on a random or set basis to different websites.. lets say "page1" and "page2". I registered a domain with a friend and we wanted to split the direction of visitors between our two personal sites. Thanks in advance.

ray326
05-04-2007, 12:22 AM
http-equiv refresh

Major Payne
05-04-2007, 02:47 AM
Complete example (LOL):

<meta http-equiv="refresh" content="5;url=http://www.w3schools.com" />

5 second delay before changing.

Ron

dmf
05-04-2007, 09:29 AM
Thanks Payne.. that is actually the code I am already using(with 1 sec delay). Let me clarify my question a bit..
What would I use if I wanted the page to alternate a redirection between two urls?

ex:
user goes to website a

50% redirect to website b
50% redirect to website c

or alternate between redirection a & b

ray326
05-04-2007, 12:54 PM
Then do it from the server side and swap the meta tags with each request. You'll probably have to do it randomly, though, since HTTP is stateless.