I have a multisite (let's call it multisite) with subdomains and domain mapping.
One of the subdomains (id 11) is mapped to domain, on which I am using AdSense.
I just got a notification from Google that I need to add a file ads.txt at the root of domain.
I added the file at the root of the main multisite domain, but obviously, when I try domain/ads.txt I get a 404, not found.
I also uploaded the file on the uploads folder of the subdomain, which is multisite/wp-content/uploads/sites/11
But this is not the solution either.
Is there any way I can upload a file to be found at a root of a subdomain mapped to a domain?
I have a multisite (let's call it multisite) with subdomains and domain mapping.
One of the subdomains (id 11) is mapped to domain, on which I am using AdSense.
I just got a notification from Google that I need to add a file ads.txt at the root of domain.
I added the file at the root of the main multisite domain, but obviously, when I try domain/ads.txt I get a 404, not found.
I also uploaded the file on the uploads folder of the subdomain, which is multisite/wp-content/uploads/sites/11
But this is not the solution either.
Is there any way I can upload a file to be found at a root of a subdomain mapped to a domain?
Share Improve this question edited Oct 27, 2019 at 15:36 Sven 3,6841 gold badge35 silver badges48 bronze badges asked Oct 26, 2019 at 14:07 MarioGMarioG 11 Answer
Reset to default 0The simplest solution to add the file ads.txt at the root of a mapped domain is to install a plugin to handle that. In my case, I searched the plugins directory for Ads.txt.
I have installed a plugin called Ads.txt Manager. After installation to to plugin's settings and paste the text that you have in the Ads.txt file. Click save, and you'll see that the ads.txt file is now visible on domain - the mapped domain.