Changes between Version 2 and Version 3 of Ticket #775, comment 6


Ignore:
Timestamp:
Apr 18, 2016, 11:33:44 PM (10 years ago)
Author:
Torsten Riemer

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #775, comment 6

    v2 v3  
    2121{{{
    2222  ##-- 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]
    2727
    2828  ##-- redirect to https-domain (Do not uncomment if you only have a SSL-Proxy!)
    29   #RewriteCond %{HTTPS} off
    30   #RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
     29  RewriteCond %{HTTPS} off
     30  RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
    3131}}}
    3232