Quantcast
Channel: Using htaccess to force HTTPS doesn't work - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 4

Answer by Emirodgar for Using htaccess to force HTTPS doesn't work

$
0
0

The following code will redirect all to https://www..... Make sure you are not using any other Wordpress plugin or configuration that could generate a conflict with it.

RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]RewriteCond %{HTTP_HOST} !^www\. [NC]RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>