This section expands our ads.txt setup article to cover steps on setting up a 301 redirect with a Cloudflare Page Rule.
Go to your site on the Cloudflare panel and select the Page Rules tab
Click 'Create Page Rule'
For the url match, enter <yourdomain>/ads.txt
For settings, select 'Forwarding URL', then '301 - Permanent Redirect', and the URL of your ads.txt, which can be found found in your site list in the NitroPay panel
Finally, hit 'Save and Deploy'
Your settings should look similar to this, but with your own domain and site id: