Force HTTPS for Wordpress Installations
Force HTTPS for Wordpress Installations
Just add this snippet to the beginning of your rewrite section of your .htaccess file to force HTTPS:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On # FORCE HTTPS: RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L] ... </IfModule> # END WordPress
As you can see, I placed it directly under “RewriteEngine On”.
Or you can also use this Snippet to force…
View On WordPress
















