1
|
RewriteEngine on
|
2
|
RewriteOptions AllowNoSlash InheritBefore
|
3
|
RewriteBase /BIEN3/Redmine/issues/
|
4
|
# needed for .. redirects
|
5
|
|
6
|
SetEnvIf Request_URI ^ innermost_dir=issues
|
7
|
|
8
|
# dir without trailing / is provided as an absolute filesystem path
|
9
|
SetEnvIf Request_URI ^ dest=../!issues?&c[]=status&c[]=priority&c[]=tracker&c[]=subject&c[]=updated_on&c[]=done_ratio&f[]=status_id&f[]=&group_by=&op[status_id]=o&per_page=100&set_filter=1&sort=priority:desc,id:desc&utf8=✓
|
10
|
# can't use `RewriteRule ^ - [env=dest:__]` because that messes up %
|
11
|
RewriteCond %{ENV:innermost_dir} =issues
|
12
|
RewriteRule ^/ %{ENV:dest} [discardpath,last,noescape,qsappend]
|
13
|
# need separate var because % is treated specially in the replacement str
|
14
|
RewriteCond %{ENV:innermost_dir} =issues
|
15
|
RewriteRule ^.+$ https://projects.nceas.ucsb.edu/nceas/issues/$0 [discardpath,last,noescape,qsappend]
|