Hello guys... I have an issue with my domain previously it was SSL enabled but now i have cancel the SSL but still https:// pages are saved in the google - so my issue is how can we redirect https:// to normal http:// location Please help me in this regard...
This should work: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} Code (markup):
Try this: Options +FollowSymlinks <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L] # BEGIN WordPress RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress </IfModule> Code (markup): Source: http://stackoverflow.com/questions/3717799/redirecting-https-to-http-via-htaccess
It's not possible unless you have an SSL certificate installed, because the lack of an SSL certificate on a https:// (secure) connection would trigger an error before the server has a chance to respond with the 301 or 302 redirect. If you have an SSL certificate, it's possible, but then again, you probably wouldn't want to redirect from https to http in that case.
You could always try cloudflare's free plan. They offer free https and you can set it through their "page rules".
hey there i don't think it will work with htaccess but you could try using php inside the header page something like this: $visitor = json_decode($_SERVER['HTTP_CF_VISITOR']); if($visitor->scheme != 'https') { $redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header("HTTP/1.1 301 Moved Permanently"); header("Location: $redirect"); } so the same you could modify so you redirect https to http: $visitor = json_decode($_SERVER['HTTP_CF_VISITOR']); if($visitor->scheme == 'https') { $redirect = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header("HTTP/1.1 301 Moved Permanently"); header("Location: $redirect"); }