Jump to content

Recommended Posts

Posted

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

Posted (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 by turtle
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...