Redirects of the old WordPress addresses (redirects.json) #25

Merged
Sluijsens merged 3 commits from feature/asf-old-url-redirects into master 2026-11-18 23:03:46 +01:00
Owner

Redirects of the old WordPress addresses of andreaslop.nl (decision of Bryan, 2026-11-18), in the format of the CMS host (design of SMC).

  • web/config/redirectRules.ts: 31 exact paths taken from the old sitemaps (7 old sitemaps to /sitemap.xml, portfolio items and tags to /portfolio, the testimonial archive to /, 410 for the theme demo and the feeds), validated (no duplicates, no chains, reserved paths). No query-string rules, no 404 rules (an unknown path is a 404 anyway).
  • pnpm build ends with config/writeRedirects.ts, which writes dist/client/redirects.json next to index.html; deploy/check-artifact.sh refuses a build without it.
  • deploy/verify-deployment.sh (CMS mode): /portfolio-item/decoration/ gives a 301 to /portfolio, /feed gives a 410 with the 404 page, /redirects.json is not served.
  • docs/redirect-rules.md describes the format and the list.

The host side is CMS PR 36 (on ASF-test since run 221).

Redirects of the old WordPress addresses of andreaslop.nl (decision of Bryan, 2026-11-18), in the format of the CMS host (design of SMC). - web/config/redirectRules.ts: 31 exact paths taken from the old sitemaps (7 old sitemaps to /sitemap.xml, portfolio items and tags to /portfolio, the testimonial archive to /, 410 for the theme demo and the feeds), validated (no duplicates, no chains, reserved paths). No query-string rules, no 404 rules (an unknown path is a 404 anyway). - pnpm build ends with config/writeRedirects.ts, which writes dist/client/redirects.json next to index.html; deploy/check-artifact.sh refuses a build without it. - deploy/verify-deployment.sh (CMS mode): /portfolio-item/decoration/ gives a 301 to /portfolio, /feed gives a 410 with the 404 page, /redirects.json is not served. - docs/redirect-rules.md describes the format and the list. The host side is CMS PR 36 (on ASF-test since run 221).
Sluijsens added 3 commits 2026-11-18 22:21:35 +01:00
The list is in config/redirectRules.ts (exact paths, from the old sitemap),
written into dist/client by the build; check-artifact.sh requires it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Upload tests: the valid build has redirects.json
Continuous Integration / check (pull_request) Successful in 3m55s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m58s
Continuous Integration / deploy-production (pull_request) Skipped
94ce5d2659
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sluijsens merged commit 4c539f0207 into master 2026-11-18 23:03:46 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SLP_Software/AndreaSlopFotografie#25