Mercurial > repos > other > Puppet
view modules/website/files/conf.extra/no-www.conf @ 10:440ea809487c
Add missing php.conf and make html-php config try index.html first as index
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 08 Nov 2014 15:35:38 +0000 |
parents | 956e484adc12 |
children |
line wrap: on
line source
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteCond %{HTTPS} =off RewriteRule (.*) http://%1$1 [R=301,L] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteCond %{HTTPS} =on RewriteRule (.*) https://%1$1 [R=301,L]