I’m trying to add the file “ads.txt” to my root directory for solving some problems with Google Adsense. I already uploaded my theme with that file in the theme’s root directory and restarted Ghost, but when I try to access the file (
tutoriales.tech/ads.txt), I’m getting 422 error: Validation (isSlug) failed for slug.
What can I do?
Hey there, just clicked on the link and there’s some sort of Google verification ID on it now. I guess it’s working now?
August 9, 2019, 12:27pm
I don’t want to open a new topic. I just came across this problem too. How can I upload this ads.txt to the not self hosted Ghost Plattform?
You’ll have to check with who you’re hosting Ghost with as to how you can upload txt files
August 9, 2019, 4:16pm
@Reto for static
.txt files you can put them in your theme’s root directory, regardless of who’s hosting your Ghost instance
August 12, 2019, 7:52am
I don’t have a self-hosted installation of Ghost. It’s the Ghost(pro) Plan Basic
August 12, 2019, 8:24am
@Reto as I said, the technique works regardless of who’s hosting your Ghost instance, so it’s exactly the same for Ghost(Pro) as for self-hosters
August 13, 2019, 9:38pm
Hm, ok. I don‘t get it. This means I can access the theme file myself, if yes - how?
You can download and upload themes from the admin under “Design”, see here for more details: