main
Both sites used WordPress's default plain permalinks -- no permalink_structure was ever set -- so every inbound link anyone has bookmarked, linked from another site, or has indexed in search is of the form ?page_id=N or ?p=N. Without a redirect those all land on the homepage with no indication of where the content went. scripts/export-wp.mjs now also writes redirects.map: a full ID -> new path table for every published page/post (not just the ones referenced from other content, since any of them could have outside inbound links), in the "id path" format Apache's txt RewriteMap wants. Regenerated on every export run alongside the content itself. The :443 vhost looks up page_id/p from the query string against that map and 301s to the resolved path, stripping the old query string. Unmapped IDs (deleted pages, a stray revision) fall through to the homepage rather than a bare 404. The redirect target is host-relative, so it works correctly under any ServerAlias this vhost answers for (including the still-dormant www.vicidial.com/vicidial.com aliases, with no changes needed once DNS is eventually pointed here). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Description
www.vicihost.com
8.7 MiB
Languages
CSS
53.8%
JavaScript
26.5%
Astro
18.3%
TypeScript
1.4%