
Apache + .htaccess
You can add the following rules to the.htaccess file to enforcehttpsInterview:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The modified.htaccess file is as follows:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Add the following rules to enforce HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>






add friends