[ad_1]
Over the years I’ve always been adding the following HTACCESS rule to all my worpress sites to direct any HTTP traffic to HTTPS.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
It essentially checks if the incoming URL is HTTP and if so rewrites it to HTTPS.
Now I’m wondering if this is really required? Does wordpress redirect to the HTTPS version on its own if we use the HTTPS URL in the settings page?
[ad_2]