308 Redirect Issue After Deploying Hexo Blog on Cloudflare

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:

  1. Running Hexo locally works fine.
  2. Deploying to Vercel works without any issues.
  3. 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!


This has been covered many times:

https://community.cloudflare.com/search?q=pages%20308%20.html%20order%3Alatest

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.