During your AdSense setup, you will be asked to “Upload your ads.txt file to the root directory of your site.” The root directory is the folder or directory following the top-level domain (example: example.com/ads.txt).
Here's how to do it on Strattic:
Login to your Strattic dashboard and click the details button for the name of the site you want to connect to.
On the site details page, under the "WordPress Connection Info" tab find your SFTP credentials.
You will need an FTP program to upload the Ads.text file from your computer to the server, I recommend downloading and installing either Cyberduck (mac) or Filezilla (windows). As we proceed through the tutorial, we'll be using Cyberduck, but the steps are similar for Filezilla.
Click on "Open Connection"
Select SFTP from the dropdown
Enter in the following information:
Server: SFTP Address/Host from Strattic Dashboard
Port: from Strattic Dashboard
Username: from Strattic Dashboard
Password: from Strattic Dashboard
Once you're connected, double click on
/public_html/ to open the root directory.
There you can upload the Ads.txt file from your computer to the server by dragging and dropping the file into the application.
Next, run a Strattic full publish to your live environment. Once complete your file will be available on your live domain, eg:
example.com/ads.txt . That's it!