@zaasmi said in How to Fix Ads.txt Not Found in Google AdSense:
Common Issues and Troubleshooting
I would like to redirect all traffic on my site to HTTPS except for the ads.txt file. Note it’s to a file e.g. domain.com/ads.txt and not a sub-folder such as domain.com/all-files-in-here/
Working Just add
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/ads\.txt
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]