Web Security

Force HTTPS on WordPress

How to implement?

Code:

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

Leave a Reply

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

Back to top button