i stop SSL certificate in my web site and i want to redirect all HTTPs URL requests to HTTP URL i try the following code in .htaccess but it not running with me RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} Code (markup):
Try: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Code (markup): or (if nothing else works): RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Code (markup): Source: https://stackoverflow.com/questions/12999910/https-to-http-redirect-using-htaccess
Or server { listen 80; server_name your_site_name.com; return 302 https://$server_name$request_uri; } Code (ApacheConf):
Try following lines in .htaccess (Replace yourdomain with your actual website name) RewriteEngineOn RewriteCond%{HTTP_HOST}^yourdomain\.com[NC] RewriteCond%{SERVER_PORT}80 RewriteRule^(.*)$http://www.yourdomain.com/$1 [R,L] Code (markup):
The above given htaccess code is correct I guess there is still an entry present in your Apache config file which is listening 443 port.
Do you really want to disable SSL? What does not succeed not mean? Page redirects but does not open http URL? - this means port 80 is not open Page stays at https:- check location of your .htacess file. It should be inside Docroot, which is usually /public_html are you on shared hosting? Is there an existing .htaccess file? What is the URI? What CMS are you using?