Serving the IndexNow .txt file

  • What’s your URL? https://www.hanayou.studio
  • What version of Ghost are you using? 6.17.0-0-g45aa268c+moya
  • How was Ghost installed and configured? Hosted on Ghost(Pro), Publisher tier

Hi everyone,

Goal
My goal is that I want to be able to host the .txt file for IndexNow while on a Ghost(Pro) Publisher tier plan. As far as I know, there isn’t a way to host an arbitrary .txt file on managed Ghost(Pro) and the necessary routing configuration seems gated behind the Business tier + add-on.

At the end, I want to serve a URL like this:

https://www.example.com/3f6e0aacec96482c9c82ddb19bbc6dc6.txt 

Non-goal
I’m not looking for an end-to-end solution (I see there is something possibly in the works as an alpha feature). Help automating submission to IndexNow is out of scope here. I just want to know if/how I can host the .txt file.

Artifacts reviewed

If you just want to place the key file, you can use the same pattern that robots.txt uses:

Download your theme, add the file to the root folder of your theme, and upload it again.

Ghost should then serve the text file on the root of your domain.

2 Likes

Holy moly… why did that not occur to me >< I build the theme for that site and already ship other custom files with it. :see_no_evil_monkey:

Thank you @jannis!

1 Like

Indexnow support is already built in with Ghost behind a flag (thanks to Jannis). I think if you contact with Ghost Pro support, they can enable it for you. This flag is already enabled for all sites running on Magic Pages and Synaps Media.

1 Like

I had seen that you both support it already. Very cool. It didn’t occur to me to contact Ghost support about it.

Fortunately, the path Jannis mentioned above worked just fine. I’ll probably just stick with that and reevaluate once native support has been officially blessed.