using.htaccess file

Can I use .htaccess files in Cloudflare Pages? I want to rewrite the URL example.com/favicon.ico to example.com/favicon.
1 Reply
JustinNoel
JustinNoel2y ago
.htaccess is specific to an Apache HTTP server and won't work with Pages.
You need _redirects. https://developers.cloudflare.com/pages/platform/redirects/
Redirects · Cloudflare Pages docs
To use redirects on Cloudflare Pages, declare your redirects in a plain text file called _redirects without a file extension, in the output folder of …
Want results from more Discord servers?
Add your server