Revision 7980
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
37 | 37 |
# translate dot-paths to dirs |
38 | 38 |
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext] |
39 | 39 |
RewriteCond %{DOCUMENT_ROOT}/$1 -l |
40 |
RewriteRule ^([^.]*)\.(.*)$ $1/$2 [last] |
|
40 |
RewriteRule ^([^/.]*)\.(.*)$ $1/$2 [last]
|
|
41 | 41 |
|
42 | 42 |
# translate dash-paths to dirs |
43 | 43 |
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext] |
44 | 44 |
RewriteCond %{DOCUMENT_ROOT}/$1 -l |
45 |
RewriteRule ^([^.-]*)-(.*)$ $1/$2 [last] |
|
45 |
RewriteRule ^([^/.-]*)-(.*)$ $1/$2 [last]
|
|
46 | 46 |
|
47 | 47 |
# non-filesystem paths |
48 | 48 |
ErrorDocument 404 / |
Also available in: Unified diff
web/vegpath/.htaccess: translate dot-/dash-paths to dirs: don't match / inside a . or - component, because it has a lower precedence