954,116 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Domain Name Divert

Hey People,

I have a quick question which i think is pretty simple but just wanna chack with you guys.

Im creating a site called www.mobilefantastic.com . The client also owns mobilesfantastic.com and mobilefantastic.co.uk. www.mobilefantastic.com is the domain where the content will be, but i want to set up an automatic divert so if someone was to miss spell the domain as mobilesfantastic or mobilefantastic.co.uk, they will automatically be sent to www.mobilefantastic.com .
Does that make sense?

Thanks a lot
GR Web FX

GR Web FX
Junior Poster in Training
66 posts since Nov 2004
Reputation Points: 11
Solved Threads: 0
 
Im creating a site called www.mobilefantastic.com . The client also owns mobilesfantastic.com and mobilefantastic.co.uk. www.mobilefantastic.com is the domain where the content will be, but i want to set up an automatic divert so if someone was to miss spell the domain as mobilesfantastic or mobilefantastic.co.uk, they will automatically be sent to www.mobilefantastic.com .

If understand you, you whant to redirectmobilesfantastic.com and mobilefantastic.co.uk to mobilefantastic.com.. What you have to do is to put on both pages code which is bellow with some sensible message

<meta http-equiv= "Refresh"
      content   = "2; URL=http://www.mobilefantastic.com">


Content is time in seconds

or other option

<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
document.location = "../javascriptredirect.html"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2 >Prepare to be redirected!</h2>

</body>
</html>


setTimeout works in clicks where 1sec=1000 clicks so in this case delay is 5 sec

peter_budo
Code tags enforcer
Moderator
15,432 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

your hosting provider should allow you to do it in your domain configuration settings.

DaveSW
Master Poster
769 posts since Jul 2004
Reputation Points: 54
Solved Threads: 20
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: