Revision 8006
Added by Aaron Marcuse-Kubitza almost 12 years ago
.htaccess | ||
---|---|---|
6 | 6 |
### mod_rewrite |
7 | 7 |
|
8 | 8 |
RewriteEngine on |
9 |
RewriteBase / |
|
10 | 9 |
|
11 | 10 |
# remove www subdomain |
12 | 11 |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ |
Also available in: Unified diff
web/main/.htaccess: mod_rewrite: Removed unneeded RewriteBase, because the default setting for RewriteBase is actually the dir of the .htaccess file itself, rather than always / . ("RewriteRule can be used in per-directory config files (.htaccess). There it will act locally, i.e., the local directory prefix is stripped at this stage of processing and your rewriting rules act only on the remainder. At the end it is automatically added back to the path." <http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteBase>)