Ahem.
Thank you sde. I have found what was causing it, my connect file has the following code:
PHP Code:
//redirect to index if someone is posting variables
if($_SERVER['REQUEST_METHOD'] == "POST"){
$referer = parse_url($_SERVER['HTTP_REFERER']);
//redirect people posting to this website via another
if($referer['host'] != "mydomain.com"){
header("Location: http://www.mydomain.com/index.php/");
}
}
Now I have edited this to try and get it to include both HTTP and HTTPS but it is still redirecting me when I submit a form, am I using the or operator incorrectly?
PHP Code:
//redirect to index if someone is posting variables
if($_SERVER['REQUEST_METHOD'] == "POST"){
$referer = parse_url($_SERVER['HTTP_REFERER']);
//redirect people posting to this website via another
if($referer['host'] != "https://www.mydomain.com" || "http://www.mydomain.com"){
header("Location: http://www.mydomain.com/index.php");
}
}
With SSL installed it doesn't like this code anymore, even though forms did work on both mydomain.com and
www.mydomain.com before.