So I’m considering purchasing a website and converting it from a WordPress site to a static website hosted on AWS and using Cloudflare to Cache all files (including html)
What I need to do is create a page rule that would convert a trailing sash into an .html extension (for ease of use with AWS, good old Dreamweaver and that could be cached on Cloudflare)
I see there are page rules to remove the trailing sash such as
- https://example.com/*/ to https:// example.com/$1
- https:// example.com//? to https://example.com/$1?$2
(Cloudflare rule: strip trailing slash)
but could it be also used to combine a .html extension at the end.
- https://example.com/*/ to https:// example.com/$1.html
- https:// example.com//? to https://example.com/$1?$2.html