Skip to content

Redirect citizen-infra.netlify.app to wiki.citizeninfra.org - #35

Merged
zhiganov merged 1 commit into
mainfrom
domain/redirect-old-netlify-url
Aug 2, 2026
Merged

Redirect citizen-infra.netlify.app to wiki.citizeninfra.org#35
zhiganov merged 1 commit into
mainfrom
domain/redirect-old-netlify-url

Conversation

@zhiganov

@zhiganov zhiganov commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Closes #34.

After the 2026-08-02 move, both hosts served the site. Setting a primary custom domain in Netlify does not redirect the .netlify.app subdomain to it — a common assumption, and wrong here — so the old URL stayed live and kept circulating.

Nothing was broken: site: already points at the new domain, so both hosts emitted canonical tags to wiki.citizeninfra.org and indexing consolidates correctly. This is tidiness, not a fix.

The two details that matter

force = true — without it the rule loses to the static file that exists at every path on this site, and the redirect silently never fires. This is the failure mode where the config looks right and does nothing.

:splat — preserves the path, so /run-reports/vtaiwan-uber/ lands on its equivalent rather than the homepage. Deep links into this wiki are the ones most worth keeping alive.

Verify after merge

curl -sI https://citizen-infra.netlify.app/about/ | grep -iE '^HTTP|^location'

Expected 301 with location: https://wiki.citizeninfra.org/about/ — note the path, not a bare homepage redirect.

Setting a primary custom domain in Netlify does not redirect the
.netlify.app subdomain to it — both hosts kept returning 200 after the
2026-08-02 move, so the old URL stayed in circulation.

force = true is required or the rule loses to the static file present at
every path on the site. :splat preserves deep links instead of dumping
everyone on the homepage.

Closes #34
@netlify

netlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Deploy Preview for citizen-infra ready!

Name Link
🔨 Latest commit 55e1e40
🔍 Latest deploy log https://app.netlify.com/projects/citizen-infra/deploys/6a6f5f9bd6ed2a00086a53dc
😎 Deploy Preview https://deploy-preview-35--citizen-infra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@zhiganov
zhiganov merged commit f95264c into main Aug 2, 2026
5 checks passed
@zhiganov
zhiganov deleted the domain/redirect-old-netlify-url branch August 2, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

citizen-infra.netlify.app still serves the site instead of redirecting to wiki.citizeninfra.org

1 participant