Forced HTTPS with .htaccess

From nuBuilderForte
Revision as of 18:12, 3 May 2021 by Apmuthu (talk | contribs) (Created page with "To force all of pages to use HTTPS, using the Code Editor in the File Manager, add these lines to the beginning of the '''.htaccess''' file (create one if it does not exist): ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To force all of pages to use HTTPS, using the Code Editor in the File Manager, add these lines to the beginning of the .htaccess file (create one if it does not exist):

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