i dont know how its called, but i want a script then when i type www.site1.com i want to go to www.site2.com
Its for CS:S server, it changed host and name
Printable View
i dont know how its called, but i want a script then when i type www.site1.com i want to go to www.site2.com
Its for CS:S server, it changed host and name
You have to own both domain names then you just use a small PHP script, i'll post one later
i meant hat yes, thx :) (if you posted it :P )
It's called redirection.
You have to buy those domains tho.
put this on www.site1.com as index.php. If you type www.site1.com it will redirect to www.site2.comCode:<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.site2.com/");
exit();
?>
BUT if you go to www.site1.com/page2 it won't redirect, if you need that to you have to use a file called .htaccess