Revision 8013
Added by Aaron Marcuse-Kubitza almost 12 years ago
.htaccess | ||
---|---|---|
10 | 10 |
|
11 | 11 |
# remove www subdomain |
12 | 12 |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ |
13 |
RewriteRule ^.*$ http://%1/$0 [discardpath,noescape,last,redirect]
|
|
13 |
RewriteRule ^.*$ http://%1/$0 [discardpath,noescape,last] |
|
14 | 14 |
|
15 | 15 |
# translate subdomain to path |
16 | 16 |
RewriteCond expr "%{HTTP_HOST} != %{SERVER_NAME}" |
Also available in: Unified diff
web/main/.htaccess: RewriteRules with [redirect] and http:// : Removed [redirect] because it is implied when the replacement is an absolute URL