Skip to content

Commit

Permalink
add some version redirects (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Sep 10, 2024
1 parent a1b1984 commit db48c99
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 16 deletions.
32 changes: 24 additions & 8 deletions content/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ RewriteRule ^api/pekko-projection/current/(.*)$ https://nightlies.apache.org/pek
RewriteRule ^docs/([^/]+)/current/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/docs/$2 [P]
RewriteRule ^api/([^/]+)/current/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/api/$2 [P]
RewriteRule ^japi/([^/]+)/current/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/japi/$2 [P]
# 1.0 redirect
RewriteRule ^docs/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/japi/$2 [P]
# 1.1 redirect
RewriteRule ^docs/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/japi/$2 [P]
# 1.0.0 redirect
RewriteRule ^docs/([^/]+)/1.0.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.0/api/$2 [P]
Expand All @@ -55,10 +63,26 @@ RewriteRule ^japi/([^/]+)/1.0.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1
RewriteRule ^docs/([^/]+)/1.0.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3/japi/$2 [P]
# 1.0.4 redirect
RewriteRule ^docs/([^/]+)/1.0.4/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.4/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.4/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.4/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0.4/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.4/japi/$2 [P]
# 1.1.0 redirect
RewriteRule ^docs/([^/]+)/1.1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0/japi/$2 [P]
# 1.1.1 redirect
RewriteRule ^docs/([^/]+)/1.1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.1/japi/$2 [P]
# 1.1.2 redirect
RewriteRule ^docs/([^/]+)/1.1.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.2/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.2/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.2/japi/$2 [P]
# 1.1.3 redirect
RewriteRule ^docs/([^/]+)/1.1.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.3/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.3/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.3/japi/$2 [P]
# 1.0.3-M1 redirect
RewriteRule ^docs/([^/]+)/1.0.3-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3-M1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.3-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3-M1/api/$2 [P]
Expand All @@ -67,14 +91,6 @@ RewriteRule ^japi/([^/]+)/1.0.3-M1/(.*)$ https://nightlies.apache.org/pekko/docs
RewriteRule ^docs/([^/]+)/1.1.0-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0-M1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.0-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0-M1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.0-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0-M1/japi/$2 [P]
# 1.0 redirect
RewriteRule ^docs/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/japi/$2 [P]
# 1.1 redirect
RewriteRule ^docs/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/japi/$2 [P]
# snapshots redirect
RewriteRule ^docs/([^/]+)/snapshot/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/docs/$2 [P]
RewriteRule ^api/([^/]+)/snapshot/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/api/$2 [P]
Expand Down
32 changes: 24 additions & 8 deletions src/main/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ RewriteRule ^api/pekko-projection/current/(.*)$ https://nightlies.apache.org/pek
RewriteRule ^docs/([^/]+)/current/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/docs/$2 [P]
RewriteRule ^api/([^/]+)/current/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/api/$2 [P]
RewriteRule ^japi/([^/]+)/current/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/japi/$2 [P]
# 1.0 redirect
RewriteRule ^docs/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/japi/$2 [P]
# 1.1 redirect
RewriteRule ^docs/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/japi/$2 [P]
# 1.0.0 redirect
RewriteRule ^docs/([^/]+)/1.0.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.0/api/$2 [P]
Expand All @@ -55,10 +63,26 @@ RewriteRule ^japi/([^/]+)/1.0.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1
RewriteRule ^docs/([^/]+)/1.0.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3/japi/$2 [P]
# 1.0.4 redirect
RewriteRule ^docs/([^/]+)/1.0.4/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.4/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.4/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.4/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0.4/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.4/japi/$2 [P]
# 1.1.0 redirect
RewriteRule ^docs/([^/]+)/1.1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0/japi/$2 [P]
# 1.1.1 redirect
RewriteRule ^docs/([^/]+)/1.1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.1/japi/$2 [P]
# 1.1.2 redirect
RewriteRule ^docs/([^/]+)/1.1.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.2/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.2/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.2/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.2/japi/$2 [P]
# 1.1.3 redirect
RewriteRule ^docs/([^/]+)/1.1.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.3/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.3/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.3/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.3/japi/$2 [P]
# 1.0.3-M1 redirect
RewriteRule ^docs/([^/]+)/1.0.3-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3-M1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0.3-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0.3-M1/api/$2 [P]
Expand All @@ -67,14 +91,6 @@ RewriteRule ^japi/([^/]+)/1.0.3-M1/(.*)$ https://nightlies.apache.org/pekko/docs
RewriteRule ^docs/([^/]+)/1.1.0-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0-M1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1.0-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0-M1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1.0-M1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1.0-M1/japi/$2 [P]
# 1.0 redirect
RewriteRule ^docs/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.0/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.0/japi/$2 [P]
# 1.1 redirect
RewriteRule ^docs/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/docs/$2 [P]
RewriteRule ^api/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/api/$2 [P]
RewriteRule ^japi/([^/]+)/1.1/(.*)$ https://nightlies.apache.org/pekko/docs/$1/1.1/japi/$2 [P]
# snapshots redirect
RewriteRule ^docs/([^/]+)/snapshot/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/docs/$2 [P]
RewriteRule ^api/([^/]+)/snapshot/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/api/$2 [P]
Expand Down

0 comments on commit db48c99

Please sign in to comment.