Project

General

Profile

« Previous | Next » 

Revision 8010

web/main/.htaccess: Added "RewriteOptions inherit" because this1 should be the default setting, to ensure that global filter rules also occur in subdirs. Note that the presence of this directive in this .htaccess file does not solve this problem, but putting it there will remind writers of subdir .htaccess files that they need to include that directive.
[1] The value should really be InheritBefore, but this is not supported in Apache 2.2, which we have (http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteoptions). This means that mixed / and dotpaths (e.g. a/b.c) are not supported, because dotpath translation will only occur if there are no slashes in the path at all.

View differences:

.htaccess
6 6
### mod_rewrite
7 7

  
8 8
RewriteEngine on
9
RewriteOptions inherit
9 10

  
10 11
# remove www subdomain
11 12
RewriteCond %{HTTP_HOST} ^www\.(.*)$

Also available in: Unified diff