-
Notifications
You must be signed in to change notification settings - Fork 540
/
.htaccess
30 lines (22 loc) · 1.75 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
# This file is maintained at https://gitbox.apache.org/repos/asf?p=struts-site.git
DirectoryIndex index.html
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/dtds/? [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RedirectMatch \/docs\/version\-notes\-25([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.$1
RedirectMatch \/docs\/version\-notes\-25\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5
RedirectMatch \/docs\/version\-notes\-23([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.$1
RedirectMatch \/docs\/version\-notes\-22([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.2.$1
RedirectMatch \/docs\/version\-notes\-21([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.1.$1
RedirectMatch \/docs\/version\-notes\-20([0-9]{1,2})+\.html https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.0.$1
RedirectMatch \/docs\/s2-0([0-9]{2})\.html https://cwiki.apache.org/confluence/display/WW/S2-0$1
RedirectMatch \/docs\/security\-bulletins.html https://cwiki.apache.org/confluence/display/WW/Security+Bulletins
RedirectMatch \/docs\/([a-zA-Z]+)-plugin\.html http://struts.apache.org/plugins/$1/
RedirectMatch \/2.*\/docs\/(.*)? http://struts.apache.org/docs/$1
RedirectMatch \/release\/2.*\/(.*)? http://struts.apache.org/$1
RedirectMatch \/2.*\/(.*)? http://struts.apache.org/$1
# page downloads.html was renamed to releases.html
RedirectMatch \/downloads /releases
RedirectMatch \/announce.html(#a[0-9]+)? /announce-2022.html$1
ErrorDocument 404 /404