Force WWW and SSL

### START WWW & HTTPS

# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

### END WWW & HTTPS

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Thawte CA Bundle

-----BEGIN CERTIFICATE----- MIIEjzCCA3egAwIBAgIQdhASihe2grs6H50amjXAkjANBgkqhkiG9w0BAQUFADCB...

Set default document to apache

As per the Apache documentation for DirectoryIndex, simply put the following in a .htaccess...

Thawte Intermediate and Root SSL

Root: thawte Primary Root CA -----BEGIN...