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]
Do you like it?

Last Update: May 23, 2016  

May 2, 2016   383    Website    
Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?


Launch Websites with Pre-build codes from 2$

Build WordPress Websites with Drag & Drop Themes and Plugins