Changes between Version 2 and Version 3 of Ticket #775, comment 6
- Timestamp:
- Apr 18, 2016, 11:33:44 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #775, comment 6
v2 v3 21 21 {{{ 22 22 ##-- redirect to www-domain, when www is missing and no subdomain given and not using an ssl-proxy 23 #RewriteCond %{HTTP_HOST} !^www\. [NC]24 #RewriteCond %{HTTP_HOST} !\.(.*)\. [NC]25 #RewriteCond %{HTTP_HOST} !^localhost [NC]26 #RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]23 RewriteCond %{HTTP_HOST} !^www\. [NC] 24 RewriteCond %{HTTP_HOST} !\.(.*)\. [NC] 25 RewriteCond %{HTTP_HOST} !^localhost [NC] 26 RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L] 27 27 28 28 ##-- redirect to https-domain (Do not uncomment if you only have a SSL-Proxy!) 29 #RewriteCond %{HTTPS} off30 #RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]29 RewriteCond %{HTTPS} off 30 RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L] 31 31 }}} 32 32
