Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
98ade5e to
9d73bfd
Compare
✅ Deploy Preview for craft-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…d template docs up Amp-Thread-ID: https://ampcode.com/threads/T-e3d2b06c-fa2a-45ca-a1b6-689ee2a1489e
9d73bfd to
ff67467
Compare
AugustMiller
left a comment
There was a problem hiding this comment.
See comment about hoisting an example. OK to merge now if you need to reference in support!
| destination: 'https://new-domain.com/{request.uri}' | ||
| status: 301 | ||
| ``` | ||
| ### Patterns |
There was a problem hiding this comment.
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}'There was a problem hiding this comment.
Added your example as-is, right after the intro and before "Patterns and Destinations" (6035e8f).
There was a problem hiding this comment.
Overdue change, thank you! 🫶
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.mdmoves tocloud/routing.md, with a_redirectsentry. Browsers keep fragments across the redirect, so links likeredirects.html#rewritesstill land.#redirects,#rewrites,#http-status-codes,#custom-headers) are unchanged.Related issues