{ Force https via .htaccess }

If you want to make sure that a site or a particular part of a site is accessed only through https, you can force it by adding the following to the  .htaccess file

RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

Leave a Reply

Your email address will not be published. Required fields are marked *