
Originally Posted by
Mike
As Twey noted, this will only work for dedicated hosts, or those that use IP-based virtual hosting. Doing this with a server dependent upon name-based virtual hosts will make the server useless.
Luckily, his is one of those.
What I was looking for is similar in forcing the dotted quad to show even if the visitor entered the name URL.
The easiest way, if .htaccess is limited here, is to include a simple line at the top of the pages:
Code:
<?php if(strpos($_SERVER['HTTP_HOST'], 'cleverwasteoftime') !== false) header('Location: http://216.118.83.123' . $_SERVER['REQUEST_URI']); ?>
Bookmarks