Skip to content

Commit

Permalink
redirect broken migration doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Sep 16, 2024
1 parent 907eca0 commit e36071c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ RewriteEngine On
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]
RewriteRule ^japi/([^/]+)/snapshot/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/japi/$2 [P]
# broken current links in legacy docs
RewriteRule ^docs/pekko/current/project/migration-guides.html https://pekko.apache.org/docs/pekko/current/migration/migration-guide-akka-1.0.x.html [P]
# pekko/current gets redirected to pekko/1.1.1
RewriteRule ^docs/pekko/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko/1.1.1/docs/$1 [P]
RewriteRule ^api/pekko/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko/1.1.1/api/$1 [P]
Expand Down
2 changes: 2 additions & 0 deletions src/main/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ RewriteEngine On
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]
RewriteRule ^japi/([^/]+)/snapshot/(.*)$ https://nightlies.apache.org/pekko/docs/$1/main-snapshot/japi/$2 [P]
# broken current links in legacy docs
RewriteRule ^docs/pekko/current/project/migration-guides.html https://pekko.apache.org/docs/pekko/current/migration/migration-guide-akka-1.0.x.html [P]
# pekko/current gets redirected to pekko/1.1.1
RewriteRule ^docs/pekko/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko/1.1.1/docs/$1 [P]
RewriteRule ^api/pekko/current/(.*)$ https://nightlies.apache.org/pekko/docs/pekko/1.1.1/api/$1 [P]
Expand Down

0 comments on commit e36071c

Please sign in to comment.