You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "pjfanning (via GitHub)" <gi...@apache.org> on 2026/10/14 15:07:28 UTC
[PR] Simplify versioned doc redirects with a single version regex [pekko-site]
pjfanning opened a new pull request, #233:
URL: https://github.com/apache/pekko-site/pull/233
Replaces the per-version rewrite rules in `.htaccess` (one block of docs/api/japi rules for every `x.y`, `x.y.z` and `x.y.z-Mn` release) with a single pattern per doc type:
```apache
RewriteRule ^docs/([^/]+)/([0-9]+\.[0-9]+(?:\.[0-9]+(?:-M[0-9]+)?)?)/(.*)$ https://nightlies.apache.org/pekko/docs/$1/$2/docs/$3 [P]
```
New releases and milestones no longer need `.htaccess` changes. Only the per-project `current` pins still need updating when a project's latest version line changes.
Also removes the trailing `snapshot` rules, which repeated the rules at the top of the file and could never match.
### Behaviour
I checked the old and new files side by side on a local Apache httpd, with `[P]` swapped for `[R]` so the target URLs were visible:
- Existing versioned URLs (`1.0`, `1.7.1`, `1.4.2`, `1.2.0-M2`, `2.0.0-M4`), `current` (both the pinned projects and the `main-snapshot` fallback) and `snapshot` go to the same targets as before.
- Versions that aren't released yet (e.g. `2.0.0-M5`) are now proxied to nightlies, which serves its own 404 if the docs don't exist. Before, they 404'd on pekko.apache.org.
- The old rules had unescaped dots, so paths like `1x7` matched by accident. They no longer match.
- `-RCn` versions still aren't matched.
`content/.htaccess` is the same copy of `src/main/public/.htaccess`.
This conflicts with #232 (http 1.4.2 release), which adds a 1.4.2 block. Whichever is merged second should drop that block, because the regex already covers 1.4.2.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [PR] Simplify versioned doc redirects with a single version regex [pekko-site]
Posted by "pjfanning (via GitHub)" <gi...@apache.org>.
pjfanning merged PR #233:
URL: https://github.com/apache/pekko-site/pull/233
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org