Code for WordPress to force http to https in .htaccess
Write this Code in .htaccess file for WordPress to force http to https
1 2 3 |
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}
%{REQUEST_URI} [L,R=301] |