remove folder names from url

So I have a worker setup that rewrites url's to not include .html in the address bar (example - somedomainname.xyz/pages/about.html > somedomainname.xyz/pages/about) is there a way to make it so it also works for folders? example - somedomainname.xyz/pages/about > somedomainname.xyz/about
3 Replies
james090500
james0905006mo ago
@mudaranrhiod It would be easier to just take your stuff out of the folder... but with cloudflare pages rules, Eg; with rules
james090500
james0905006mo ago
No description
Mudrhiod
MudrhiodOP6mo ago
I tried that at first but couldn't get it to work. It would keep the /pages/ in the url address and end up pulling the html file from root

Did you find this page helpful?