Skip to content

Commit

Permalink
add back snapshot redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 10, 2024
1 parent 1a175f5 commit 5aa3408
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ RewriteRule ^api/pekko-persistence-r2dbc/current/(.*)$ https://nightlies.apache.
# pekko-projection/current gets redirected to pekko-projection/1.0
RewriteRule ^docs/pekko-projection/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko-projection/1.0/docs/$1 [P]
RewriteRule ^api/pekko-projection/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko-projection/1.0/api/$1 [P]
# pekko-*/current gets redirected to pekko-*/snapshot if no releases exist yet
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]
Expand Down
4 changes: 4 additions & 0 deletions src/main/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ RewriteRule ^api/pekko-persistence-r2dbc/current/(.*)$ https://nightlies.apache.
# pekko-projection/current gets redirected to pekko-projection/1.0
RewriteRule ^docs/pekko-projection/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko-projection/1.0/docs/$1 [P]
RewriteRule ^api/pekko-projection/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko-projection/1.0/api/$1 [P]
# pekko-*/current gets redirected to pekko-*/snapshot if no releases exist yet
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]
Expand Down

0 comments on commit 5aa3408

Please sign in to comment.