How to force redirect to HTTPS

Insert thisĀ snippet code in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
[alert-note] You will find your .htaccess file at the root of the html folder in your ftp access or in the File Manager from your hosting control panel. If you use the File Manager, make sure you check to display the hidden files.[/alert-note]
Share it

Last Update: May 23, 2016  

May 2, 2016   483    Website    
Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?