How to force redirection to HTTPS Print

  • force https, https, https redirection, htaccess, rewriteengine
  • 0

To force visitors to use HTTPS to access your site via your SSL certificate is to add the following to the top of a .htaccess file:

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

Was this answer helpful?

« Back

Powered by WHMCompleteSolution