Redirect https to http using htaccess

How to Redirect https to http using htaccess

You can easly redirect any https weblink to http just using the code written below copy the code and paste it in your .htaccess file (.htacess file is avialble in your website home directory ) please note that dont remove any other lines just paste the code below the first line and RewriteEngine should be on

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Please Note

The difference between http and https is that https requests are sent over an ssl-encrypted connection. The ssl-encrypted connection must be established between the browser and the server before the browser sends the http request.

Https requests are in fact http requests that are sent over an ssl encrypted connection. If the server rejects to establish an ssl encrypted connection then the browser will have no connection to send the request over. The browser and the server will have no way of talking to each other. The browser will not be able to send the url that it wants to access and the server will not be able to respond with a redirect to another url.

So this is not possible. If you want to respond to https links, then you need an ssl certificate

About The Author

Related Posts

Add Comment