I have two domains. mikewebs.net and mikewebs.com. They both point to the same ip.
I want to redirect people to the correct page based on the url typed.
My code is this:
[php]
<?php $fulluri = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; echo $fulluri; if ($fulluri = "https://mikewebs.com") { header('Location: IP.PHP'); exit(); } if ($fulluri = "https://mikewebs.net") { header('Location: MW.PHP'); exit(); } ?>[/php]
Both domains go to the IP.php page anyway. Please help??