We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Adding .txt root file for validation

Adding .txt root file for validation

demib
Shopify Partner
135 13 64

Ahrefs now support IndexNow. That is great. However, if you are using Shopify adding the required validation file is not so straight forward.

So, I have made this guide that will show you how to do this.

 

https://elevateapps.io/indexnow-ahrefs-shopify/

SEO Geek since 1996, consultant author and public speaker. Admin of the Shopify SEO Facebook Group

Was your question answered? Kindly mark it as an Accepted Solution 🙂
Replies 2 (2)

KieranR
Shopify Partner
405 35 120

Great info - thanks for sharing I still need to give that feature in Ahrefs a spin. 

For my sanity and so I remember (lol) steps are:

  1. In Shopify Admin
  2. Go to Content > Files
  3. Create a .txt file
  4. Upload the file created from Ahrefs key
  5. Shopify will give a weird URL like:
    https://cdn.shopify.com/s/files/1/123456/456789/789123/files/s1srgp8p22s73cmw5rtjjyb1h3h6fgt2.txt?v=... 
  6. Go to Online Store > Nav > Redirects
  7. Add redirect from the Ahrefs required URL to this one. 

 

Very similar to how you used to have to do a redirect as a workaround before Shopify allowed robots.txt editing directly.

Part time Shopify SEO, based in NZ. Sometimes freelance outside the 9-5.
demib
Shopify Partner
135 13 64

Thanks 🙂

 

Yes, except Ahrefs do not give you the file - only the key. You have to manually create the file, with the key-name.txt and the key as only content. 

SEO Geek since 1996, consultant author and public speaker. Admin of the Shopify SEO Facebook Group

Was your question answered? Kindly mark it as an Accepted Solution 🙂