Revision 8029
Added by Aaron Marcuse-Kubitza almost 12 years ago
.htaccess | ||
---|---|---|
31 | 31 |
# e.g. a/[b.c] -> a/[b.c]/ so it doesn't become a/b/c after []-unescaping |
32 | 32 |
# this is needed because mod_rewrite often runs the same rules again |
33 | 33 |
RewriteRule ^(.*/)?((?=.)(?:[^.\[\]/]*|\[[^\[\]/]*\])*)(?:\.([^/]*))?$ $1%1%2/$3 [discardpath,noescape,next] |
34 |
# discardpath: avoids infinite loop with paths like a/b.c
|
|
34 |
# discardpath: avoids infinite loop by not reappending PATH_INFO (filename)
|
|
35 | 35 |
|
36 | 36 |
# non-filesystem paths |
37 | 37 |
ErrorDocument 404 / |
Also available in: Unified diff
web/main/.htaccess: translate dotpaths: discardpath explanation: Clarified that the infinite loop resulted from reappending PATH_INFO (the Apache-matched filename)