Domain Forwarding via HTML Script

Soldato
Joined
17 Nov 2004
Posts
9,964
Location
The Republic
Some help needed guys

I have got a few domain names all the same eg .co.uk, com .net etc.

I have put a little script in the index of each page as follows

<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>index</title>
<meta http-equiv="REFRESH"
content="0;
url=http://www.domain.com">
</head>
<body>
<br>
<br>
</body>
</html>

with the domain being where I want the specific web address to forward to. Basically when people type in the domain I want it keep the domain name as per the selected url. So if people type in .net they get .net .com they get .com so on and so forth. Albeit that all domains are forwarding just to one site.

Is there any modification I can make to the script in order to do this ?

This might be a bit vague so apologies in advance if it is.
 
Man of Honour
Joined
30 Oct 2002
Posts
15,807
Location
Surrey
You could do this without any code, just point all the domains at the one server using the DNS records and if necessary host headers.
 
Back
Top Bottom