最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Add file at the root of mapped domain in multisite

programmeradmin0浏览0评论

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 1
Add a comment  | 

1 Answer 1

Reset to default 0

The 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.

发布评论

评论列表(0)

  1. 暂无评论