RSS Forums RSS
Please support our Site Layout and Usability advertiser: Internet Marketing Services

Domain Name Divert

Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,716
Reputation: peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice 
Rep Power: 12
Solved Threads: 322
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Domain Name Divert

  #2  
Jun 9th, 2005
Originally Posted by GR Web FX
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 redirect mobilesfantastic.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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:31 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC