Cut cross-domain _redirects so docs.pccx.ai stays standalone#108
Merged
Conversation
docs.pccx.ai is the v002 legacy site now and should serve its own Sphinx build instead of forwarding visitors to docs.altifigence.com. The _extra/_redirects file held nine 301 rules that rewrote every page — /, /*, /en/*, /ko/*, /docs/v002/*, /en/docs/v002/*, /ko/docs/v002/*, /robots.txt, /sitemap.xml — to corresponding paths under docs.altifigence.com. Drop the file entirely. The deploy.yml \"Create root redirect page\" step is gated on `if [ -f _extra/_redirects ]`, so it now no-ops, and the Sphinx build's own root index.html (with its same-domain meta refresh to /en/) keeps the site fully self-contained. Companion change: pccxai/pccx-vision-v001 was deleted on 2026-05-27 and v003 / vision-v001 / Lab were removed from this Sphinx tree in #107. docs.altifigence.com is now the canonical hub for everything beyond v002; docs.pccx.ai is a frozen v002 archive.
Deploying pccx with
|
| Latest commit: |
ff94e44
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cf4f9d38.pccx.pages.dev |
| Branch Preview URL: | https://chore-cut-cross-domain-redir.pccx.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_extra/_redirects. It held nine 301 rules that rewrote every docs.pccx.ai page (/,/*,/en/*,/ko/*,/docs/v002/*,/en/docs/v002/*,/ko/docs/v002/*,/robots.txt,/sitemap.xml) to corresponding paths underdocs.altifigence.com. With those rules removed, docs.pccx.ai serves its own Sphinx build directly.Why
docs.pccx.aiis now the v002 legacy archive and is fully separated fromdocs.altifigence.com(the canonical PCCX hub beyond v002). Forwarding visitors to docs.altifigence.com fights that split, and the redirect cache it produces (301 is permanently cached by browsers) leaves users stuck ataccount.altifigence.comwhen they later try to reachhttps://docs.pccx.ai.The deploy workflow already guards the redirect-copy step on
if [ -f _extra/_redirects ]; then cp ...; fi, so removing the file makes the step a no-op without any other workflow change. The Sphinx build's existing rootindex.html(<meta http-equiv="refresh" content="0; url=en/index.html">) keeps the site fully self-contained.Related changes
pccxai/pccx-vision-v001repo deleted 2026-05-27.docs/{v003,vision-v001,Lab}and ko mirrors removed from this Sphinx tree in Drop v003, vision-v001, and Lab from the Sphinx site #107.Altifigence/altifigence-docs#93landed the one-time Sphinx HTML snapshot atdocs.altifigence.com/v002/sphinx-mirror/. The two sites do not sync going forward.Test plan
make strict(CI) builds without warnings.curl -sI https://docs.pccx.ai/returns302withLocation: /en/(same domain).curl -sI https://docs.pccx.ai/en/docs/v002/Architecture/rationale.htmlreturns 200 with Sphinx HTML.https://docs.pccx.aiin incognito (no stale 301 cache) lands on the v002 docs, not onaccount.altifigence.com.