I am trying to set up a redirect based on the URL requested. Below is my code. I get the following error Parse error: syntax error, unexpected '(' in /vservers/mysite/htdocs/home.php on line 4.
Any idea where I am going wrong?
<?php
$domain = $_SERVER["HTTP_HOST"];
if (($domain == “myfirstdomain.com”)
($domain == “ {
header(”location:}
if (($domain == “myseconddomain.com”)
($domain == “ {
header(”location:}
?>
Any idea where I am going wrong?
<?php
$domain = $_SERVER["HTTP_HOST"];
if (($domain == “myfirstdomain.com”)
($domain == “ {
header(”location:}
if (($domain == “myseconddomain.com”)
($domain == “ {
header(”location:}
?>