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;?> Link to comment https://forums.phpfreaks.com/topic/5664-domain-alias/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.