Skip to content

Cloud: rename redirects page to Routing Rules - #814

Open
timkelty wants to merge 2 commits into
cloud/rewrite-request-optionsfrom
cloud/routing-rules-page
Open

timkelty wants to merge 2 commits into
cloud/rewrite-request-optionsfrom
cloud/routing-rules-page

Conversation

@timkelty

@timkelty timkelty commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This PR renames the Cloud redirects page to "Routing Rules" and moves the docs that redirects and rewrites share into one section. The page now covers rewrites and request proxying as much as redirects, and the shared template reference sat under the Redirects heading.

Stacked on #813.

Changes

  • cloud/redirects.md moves to cloud/routing.md, with a _redirects entry. Browsers keep fragments across the redirect, so links like redirects.html#rewrites still land.
  • Pattern and destination template docs move out of the Redirects section into a shared "Patterns and Destinations" section, which also covers bracket syntax and brace escapes.
  • Rewrites link to that section instead of restating it.
  • Existing anchors (#redirects, #rewrites, #http-status-codes, #custom-headers) are unchanged.
  • The sidebar and links from other Cloud pages point to the new path.

Related issues

@timkelty
timkelty requested a review from a team as a code owner December 4, 2026 16:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T16:55:22.214415Z 8a8dde2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@timkelty
timkelty force-pushed the cloud/routing-rules-page branch 11 times, most recently from 98ade5e to 9d73bfd Compare December 4, 2026 17:14
@timkelty
timkelty added this pull request to stack #815 December 4, 2026 17:22
@netlify

netlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for craft-docs ready!

Name Link
🔨 Latest commit 6035e8f
🔍 Latest deploy log https://app.netlify.com/projects/craft-docs/deploys/6b13193d347bb89871d60636
😎 Deploy Preview https://deploy-preview-814--craft-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@AugustMiller AugustMiller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment about hoisting an example. OK to merge now if you need to reference in support!

Comment thread docs/cloud/routing.md
destination: 'https://new-domain.com/{request.uri}'
status: 301
```
### Patterns

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to preserve a basic example before getting into the structure. We get into the weeds really fast. 😬

Assembled from later examples…

php-version: '8.5'

# ...

redirects:
  - pattern:
      hostname: 'promo-domain.com'
    destination: 'https://main-domain.com/promo'
    status: 301

rewrites:
  - pattern:
      hostname: 'delivery.main-domain.com'
    destination: '{assetBaseUrl}/{request.uri}'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added your example as-is, right after the intro and before "Patterns and Destinations" (6035e8f).

Comment thread docs/cloud/routing.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overdue change, thank you! 🫶

@timkelty
timkelty requested a review from AugustMiller December 4, 2026 20:21
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.

2 participants