taylor
CDCloudflare Developers
•Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
Does that make sense?
10 replies
CDCloudflare Developers
•Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
For example, https://misty-rain-fc5d.taylorlee.workers.dev/redirect redirects with 301 to example.com, whereas https://misty-rain-fc5d.taylorlee.workers.dev does fetch(request) and thus returns the 404 page. If you are trying to fetch the origin server of a website that you own, you may need to use a Route instead of workers.dev https://developers.cloudflare.com/workers/configuration/routing/
10 replies
CDCloudflare Developers
•Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
The redirect should work correctly, it is the case of calling fetch(request) on workers.dev without changing the url that will result in the 404 page.
10 replies
CDCloudflare Developers
•Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
So for " If the request doesn't match, pass it through", there is no origin for workers.dev, so it is hitting the workers.dev 404 page. What do you want that path to do?
10 replies
CDCloudflare Developers
•Created by Valak JL on 10/4/2024 in #workers-help
Worker code for workaround to redirect pages with multi-level paths
Hello! Are you running this Worker on workers.dev or routed on a zone?
10 replies
CDCloudflare Developers
•Created by julien3392 on 9/26/2024 in #general-help
CF Worker suddenly stop responding when it is called from a subdomain environment
hi @julien3392 - it looks like this may have been a new issue caused during enabling support for Workers preview URLs. In any case, it should have been fixed. Can you confirm that your environments are accessible now? Sorry about that!
4 replies