This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.htaccess
executable file
·32 lines (21 loc) · 1.53 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ErrorDocument 404 /404.html
SetEnvIf Request_URI .* base_artifact_url=http://repository-projectodd.forge.cloudbees.com/incremental/torquebox/LATEST/
SetEnvIf Request_URI .* release_url=http://repository-projectodd.forge.cloudbees.com/release
RewriteEngine on
RewriteRule ^documentation/LATEST/torquebox-doc\.pdf$ %{ENV:base_artifact_url}/torquebox-docs.pdf [P]
RewriteRule ^documentation/LATEST$ /documentation/LATEST/ [R]
RewriteRule ^documentation/LATEST/?$ %{ENV:base_artifact_url}/html-docs/index.html [P]
RewriteRule ^documentation/LATEST/(.*)$ %{ENV:base_artifact_url}/html-docs/$1 [P]
RewriteRule ^builds/([0-9]+)/torquebox-dist-bin.zip$ http://repository-projectodd.forge.cloudbees.com/incremental/torquebox/$1/torquebox-dist-bin.zip [P]
RewriteRule ^builds/LATEST/torquebox-dist-bin.zip$ %{ENV:base_artifact_url}/torquebox-dist-bin.zip [P]
RewriteRule ^release/(.*)$ %{ENV:release_url}/$1 [R,L]
RewriteRule ^rubygems$ http://repository-projectodd.forge.cloudbees.com/rubygems/ [R,L]
RewriteRule ^rubygems/(.*)$ http://repository-projectodd.forge.cloudbees.com/rubygems/$1 [R,L]
SetEnvIfNoCase Request_URI torquebox-dist-bin\.zip$ torquebox-latest
Header set Content-Disposition \
"attachment; filename=torquebox-dist-bin.zip" env=torquebox-latest
SetEnvIfNoCase Request_URI torquebox-doc\.pdf torquebox-doc-latest
Header set Content-Disposition \
"attachment; filename=torquebox-doc.pdf" env=torquebox-doc-latest
RewriteRule ^torqbox$ /torqbox/ [R]
RewriteRule ^torqbox/?$ /news/tags/4x/ [R]