forked from eclipse-archived/ceylon-lang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
74 lines (58 loc) · 5.07 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Options +FollowSymlinks
RewriteEngine on
IndexIgnore *
DirectoryIndex index.html
ErrorDocument 404 /404.html
RewriteCond %{HTTP_HOST} ^ceylon-lang.org$ [OR]
RewriteCond %{HTTP_HOST} ^ceylon.beanvalidation.org$ [OR]
RewriteCond %{HTTP_HOST} ^www.ceylon-lang.org$ [OR]
RewriteCond %{HTTP_HOST} ^staging.ceylon-lang.org$
# Redirect old /documentation links to /documentation/current
RewriteRule ^documentation$ /documentation/current$1
RewriteRule ^documentation/$ /documentation/current$1
RewriteRule ^documentation/index.html$ /documentation/current$1
RewriteRule ^documentation/faq(.*)$ /documentation/current/faq$1
RewriteRule ^documentation/ide(.*)$ /documentation/current/ide$1
RewriteRule ^documentation/introduction(.*)$ /documentation/current/introduction$1
RewriteRule ^documentation/presentation(.*)$ /documentation/current/presentation$1
RewriteRule ^documentation/reference(.*)$ /documentation/current/reference$1
RewriteRule ^documentation/roadmap(.*)$ /documentation/current/roadmap$1
RewriteRule ^documentation/spec(.*)$ /documentation/current/spec$1
RewriteRule ^documentation/tour(.*)$ /documentation/current/tour$1
# Redirect /documentation/current to /documentation/1.0
RewriteRule ^documentation/current(.*)$ /documentation/1.0$1 [L]
# Redirect improper URL for stephane epardaud to correct one
RewriteRule ^blog/authors/styephane-yepardaud(.*)$ /blog/authors/stephane-epardaud$1
# Redirect download links to our download site
RewriteRule ^download/dist/1_0_Milestone1$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.1\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone1_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.1_0\.1_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone1_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.1\.0-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone2$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.2\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone2_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.2_0\.2_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone2_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.2\.0-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone3$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone3_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3_0\.3_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone3_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.0-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone3_1$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.1\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone3_1_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.1_0\.3\.1_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone3_1_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.3\.1-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone4$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.4\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone4_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.4_0\.4_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone4_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.4\.0-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone5$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.5\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone5_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.5_0\.5_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone5_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.5\.0-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone6$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone6_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6_0\.6_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Milestone6_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.0-0\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_Beta$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.1\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_Beta_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.1_0\.6\.1_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_Beta_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-0\.6\.1-1\.noarch\.rpm" [R=302,L]
RewriteRule ^download/dist/1_0_0$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.0\.0\.zip" [R=302,L]
RewriteRule ^download/dist/1_0_0_deb$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.0\.0_1\.0\.0_all\.deb" [R=302,L]
RewriteRule ^download/dist/1_0_0_rpm$ "http\:\/\/downloads\.ceylon-lang\.org\/cli\/ceylon-1\.0\.0-1\.0\.0-0\.noarch\.rpm" [R=302,L]
# Redirect social network links
RewriteRule ^plus$ "https\:\/\/plus\.google\.com\/u\/0\/102481741611133754149" [R=302,L]
RewriteRule ^\+$ "https\:\/\/plus\.google\.com\/u\/0\/102481741611133754149" [R=302,L]
# Redirect user forum to Google Groups
RewriteRule ^community/forum$ "http://groups.google.com/group/ceylon-users" [R=302,L]