ifyrlucky Posted March 24, 2006 Share Posted March 24, 2006 I want one domain name to go to the index and another to go to a specific page within the website. I am using the following code in the header of the index, but to no result. Can anyone tell me how to fix this?<?phpif ($HTTP_HOST=="http://www.chickswhostick.com" or $HTTP_HOST=="www.chickswhostick.com" or $HTTP_HOST=="chickswhostick.com"){header("Location: [a href=\"http://www.chickswhostick.com/teamitgurl.php");\" target=\"_blank\"]http://www.chickswhostick.com/teamitgurl.php");[/a]} /* Redirect browser *//* Make sure that code below does not get executed when we redirect. */exit;?> Quote Link to comment https://forums.phpfreaks.com/topic/5664-domain-alias/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.