RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
$redirect = "https://".$_SERVER['HTTP_HOST'].$
header("Location: $redirect");
}
refer
http://stackoverflow.com/questions/5106313/redirecting-from-http-to-https-with-php