http to https redirect .htaccess (100% Working)

You can force all of your pages to use HTTPS. To do this you will need to modify your .htaccess file. Using the Code Editor in the File Manager, add these lines to the beginning of the .htaccess file.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

Praveen Kumar

I am a fullstack web developer with a passion for SEO, creating stunning websites, and organic marketing. I am a perfectionist.

Post navigation