Revision 8498
Added by Aaron Marcuse-Kubitza over 11 years ago
web/.htaccess | ||
---|---|---|
66 | 66 |
# prepend dir name if it's part of the filename (e.g. dir/file -> dir/dir.file) |
67 | 67 |
# works only if dir supports relative redirects and sets %{ENV:innermost_dir} |
68 | 68 |
RewriteCond %{REQUEST_FILENAME} ^(.*/)?(.+?)$ |
69 |
RewriteCond %1%{ENV:innermost_dir}.%2 -f
|
|
69 |
RewriteCond %1%{ENV:innermost_dir}.%2 -F
|
|
70 | 70 |
RewriteRule ^(?!/)(.*/)?(.+?)$ $1%{ENV:innermost_dir}.$2 [discardpath,noescape,last,redirect,qsappend] |
71 | 71 |
|
72 | 72 |
## specific to / |
Also available in: Unified diff
web/.htaccess: prepend dir name if it's part of the filename: support MultiViews filenames without the extension, by using a lookahead request -F instead of a regular -f