digisummo Posted August 11, 2003 Posted August 11, 2003 I have a website that I want to be on a secure server so I got secure server space and uploaded the site to it , but I need some sort of redirection to where thewebsite is now from the old domain name. How do you script a redirection so that when you type the domain name of the server in a browser it redirects you to where the new space is located? Thanks Quote
TCH-Don Posted August 11, 2003 Posted August 11, 2003 (edited) Here is one simple example that should work in most browsers. ><HTML> <HEAD> <TITLE> </TITLE> <script LANGUAGE="JavaScript"> <!-- Begin window.location="http://example.com/folder/";; // End --> </script> <meta http-equiv="refresh" CONTENT="0; url=http://example.com/folder/"> </HEAD> <body> <a href="http://example.com/folder">click to goto example.com/folder</a> </body> </HTML> p.s. I use this on my old tripod site thepetscorner.tripod.com to send old links to my new site. Edited August 11, 2003 by turtle Quote
TCH-JimE Posted August 11, 2003 Posted August 11, 2003 Hi, Best thing is to get the domain name itself to re-direct. This is often a service provided by them. Also a meta direct would help for thoose who like to turn off javascript Bugman Quote
digisummo Posted August 11, 2003 Author Posted August 11, 2003 than you very much everyone very helpfull. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.