TECHIES WORLD

For Techs.... Techniques.... Technologies....

ApacheCpanelLinux

How to redirect all HTTP requests to HTTPS

We can redirect all HTTP requests to HTTPS by adding the following lines to the .htaccess file.

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

That's all........

 

Leave a Reply