For Workes & Pages, what is the name of the domain?
What is the issue or error you’re encountering
308 Redirect Issue After Deploying Hexo Blog on Cloudflare
What steps have you taken to resolve the issue?
Hi everyone,
After deploying my Hexo blog to Cloudflare, I encountered an HTML redirect issue. Specifically, when I visit:
https://xxx.com/posts/xxx.html
It gets a 308 redirect to:
https://xxx.com/posts/xxx
Here are the details:
- Running Hexo locally works fine.
- Deploying to Vercel works without any issues.
- Disabling the Cloudflare proxy (the little cloud icon) doesn’t solve the problem.
In Cloudflare Pages, I haven’t made any specific configurations and everything is set to default. I also haven’t set up any redirects or functions, so I’m not sure why this is happening.
Here’s an example:
Request URL:
https://iaiuse.com/posts/9c007e78.html
Request Method:
GET
Status Code:
308 Permanent Redirect
Remote Address:
127.0.0.1:10809
Referrer Policy:
strict-origin-when-cross-origin
Response Headers
Request Headers
Network Log Row Name: 9c007e78.html/posts, Status: 308Permanent Redirect, Type: document / Redirect, Initiator: Other, Size: 283 B0 B, Time: 305 ms303 ms
Has anyone encountered this issue before or have any suggestions on how to fix it? Thanks in advance!