🐛 BUG: Difference in redirects parsing for Pages Direct Upload
See original GitHub issueWhat version of Wrangler
are you using?
2.0.8
What operating system are you using?
Windows
Describe the Bug
There appears to be a difference in the _headers
and _redirects
parsing when using wrangler pages publish
or the dashboard direct upload for Cloudflare Pages.
- The following redirect rule (
/:_/* /
) works through the Git integration but not direct upload.
# Git integration
curl https://pages-du-test.pages.dev/foo/bar -sSI
HTTP/1.1 302 Found
# Direct Upload
curl https://foo-86b.pages.dev/foo/bar -sSI
HTTP/1.1 200 OK
- The dashboard does not show the parsed redirects/headers, despite them working.
Issue Analytics
- State:
- Created a year ago
- Reactions:11
- Comments:11 (3 by maintainers)
Top Results From Across the Web
[Bug] Direct Uploads failed to parse _redirects and _headers ...
The problem is that the _redirects and _headers files cannot be parsed when publishing the Pages site via Direct Uploads.
Read more >Open redirect URLs: Is your site being abused?
An open redirect isn't a bug or a security flaw in and of itself—for some uses they have to be left fairly open....
Read more >EXPLOITING URL PARSERS: THE GOOD, BAD, AND ...
A HTTP response telling the browser to redirect the user to https:ֿ/\www.google.com through the Location. HTTP header, using both backslashes and slashes. The ......
Read more >Create redirects for GitLab Pages
In GitLab Pages, you can configure rules to forward one URL to another using Netlify ... 11 rules rule 1: valid rule 2:...
Read more >How to Redirect a Web Page | CSS-Tricks
A redirect is when a web page is visited at a certain URL, it changes to a different URL. For instance, a person...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @keenwon - that is a separate issue to this issue however (which we have an internal ticket for.) These files are getting applied, they just aren’t showing up in the Dash UI
Thank you for the report and everyone’s patience - this is now fixed