Forum Moderators: phranque
RewriteEngine On
RewriteCond %{ENV:SECURE_REDIRECT} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:SECURE_REDIRECT} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteRule ^index\.php$ - [L] # WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} ^80
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^index\.php$ - [L] [edited by: phranque at 5:51 am (utc) on Jan 17, 2015]
[edit reason] Please Use example.com [webmasterworld.com] [/edit]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Found The document has moved...
RewriteEngine On
RewriteCond %{SERVER_PORT} !=80
RewriteRule (.*) https://www.example.com/$1 [R=301,L]
This page can’t be displayed
Make sure the web address http://www.example.com is correct.
[edited by: phranque at 9:21 pm (utc) on Jan 18, 2015]
[edit reason] exemplified URLs [/edit]
If the settings do not specify https: it will generate http: URLs.