Redirect Java Script (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Guest -> Redirect Java Script (3/19/2001 13:06:00)

Hi I have a web site on interland http://www.freemadisonads.com I am not using all the disk space available so I am going to move a my two other sites http://www.april31974.com and http://www.mchs1981.com to there. They said I could use a perl script to read the url and then redirect the browser to the proper subdirectory on the interland site. Does any know where I can find a script that will do this?

Thanks for all your help!!
scott k





Swirl -> RE: Redirect Java Script (3/20/2001 20:54:00)

Hi Scott

It's not a perl script, but this should do...

<meta http-equiv="refresh" content="0; url=http://yoururl.com">

Just copy and paste it right after your opening <head> tag and change the URL. By the way, the zero in the script indicates the number of seconds to pause before going to the new site. If you want to put a message up saying that the site has been moved, just change the zero to the number of seconds you want the message to be displayed.

Hope it works for you.
Swirl

------------------
Sometimes I think I understand everything, then I regain consciousness.





rdspollin -> RE: Redirect Java Script (3/20/2001 20:15:00)

make sure you also include a link to the new location, something like this:

the site has moved, if you are not autimatically redirected please <a href="http://www.new_site.com/">click here</a>

incase the visitors browser doesnt like the javascript.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625