Skip to content

Widen the www rule to plain HTTP and record why - #14

Merged
aarontaylor-dev merged 1 commit into
mainfrom
claude/www-rule-http
Sep 26, 2026
Merged

aarontaylor-dev merged 1 commit into
mainfrom
claude/www-rule-http

Conversation

@aarontaylor-dev

Copy link
Copy Markdown
Owner

Updates DEPLOY.md to match a change already made in Cloudflare on 26 September 2026.

What changed on the zone. The www to apex Redirect Rule was:

  • https://www.* → https://${1}

It is now:

  • http*://www.* → https://${2}

It is still a 301 and still keeps the query string.

Why. The monthly four-sites check found http://www.chapbook.page returning a Cloudflare 522 every time. No browser was affected, because .page is HSTS-preloaded, but curl and crawlers were.

Verified over four rounds after deploying:

Request Result
http:// and https://www.chapbook.page/ 301 → https://chapbook.page/
.../system.md 301 → https://chapbook.page/system.md
.../llms.txt?ref=test 301 → https://chapbook.page/llms.txt?ref=test
http://www.chapbook.page/v1/chapbook.css 301 → https://chapbook.page/v1/chapbook.css

The apex and the pinned /v1.2.2/chapbook.css are unchanged, and the pinned file's bytes still match.

🤖 Generated with Claude Code

The monthly four-sites check found http://www.chapbook.page answering a
Cloudflare 522 every time. The www to apex rule matched "https://www.*" only,
so a plain-HTTP request matched nothing and fell through. No browser saw it,
because .page is HSTS-preloaded, but curl and crawlers did.

The rule now matches "http*://www.*" and redirects to https://${2}. Both
schemes get a single 301 to the apex with path and query kept, checked over
four rounds. Cloudflare will not accept "*://www.*" because it wants a
leading protocol.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Deploying chapbook with  Cloudflare Pages  Cloudflare Pages

Latest commit: a81d32f
Status: ✅  Deploy successful!
Preview URL: https://4c3e69c1.chapbook.pages.dev
Branch Preview URL: https://claude-www-rule-http.chapbook.pages.dev

View logs

@aarontaylor-dev
aarontaylor-dev merged commit e1c4592 into main Sep 26, 2026
2 checks passed
@aarontaylor-dev
aarontaylor-dev deleted the claude/www-rule-http branch September 26, 2026 15:42
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.

1 participant