Cloudflare Pages Route Matching: Disable extensionless HTML redirect


I’m trying to host an old web 1.0 website with HTML pages whose permalinks ending in .html to be preserved because they are linked from everywhere. CF Pages however 308 redirects the html pages to their extensionless counterparts.

A switch or an option to disable this would allow me to host the website with Pages, because it’s important that the links don’t change. I know this is currently not possible to do in CF Pages, but I wonder if something is in the works or there’s any way to put an exception for this web property.



I’m also looking for a solution, currently using github pages, waiting for a solution

1 Like

I am looking for something similar to this also. I cannot find any support or solutions anywhere.

1 Like

Same. I find that the redirects without .html do work, but I don’t want either (a) every request to include a redirect, or (b) re-write my site to not have .html extensions.