Revision 8444
Added by Aaron Marcuse-Kubitza over 11 years ago
.htaccess | ||
---|---|---|
1 | 1 |
RewriteEngine on |
2 | 2 |
RewriteOptions AllowNoSlash |
3 | 3 |
|
4 |
SetEnvIf Request_URI ^ innermost_dir=TNRS |
|
5 |
|
|
4 | 6 |
# parse dotpath in the query string |
5 | 7 |
RewriteCond %{QUERY_STRING} ^(?!&).+$ |
6 | 8 |
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$ |
Also available in: Unified diff
web/**/.htaccess: Added SetEnvIf directives to set the $innermost_dir env var, which is used by InheritBefore RewriteRule inheritance. You can easily populate the current dir name in jEdit by right-clicking the buffer tab and selecting Insert File Path (which requires the BufferTabs plugin), and then picking out the dir right before the .htaccess. If multiple dirs in the dir path have the same name (e.g. a/b/a/), add a distinguishing prefix to the inner dirs (this is rare).