Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-01-2025 19:55:43

polarize
Moderator
Registered: 11-15-2004
Posts: 341

IndexNow Extension Module - 9.4 release Question - Multisites

While reviewing and working on IndexNow Extension Module I noticed that an API Key is generated to be entered along with the URL .txt output file in the admin interface.  Is it possible to create an instance with Multisite Overrides to submit a different API key and output URL .txt file for each multisite?

If so what would be an example of how to do this properly as I'm not sure how to test this scenario?

Thank you


Using Kryptronic K9!  - v 9.4
Previous Versions:
ClickCartPro 8
ClickCartPro 7
ClickCartPro 6
ClickCartPro 5.1

Offline

 

#2 05-02-2025 08:38:54

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19898
Website

Re: IndexNow Extension Module - 9.4 release Question - Multisites

Yes.  Under System / MultiSite / MultiSites, for each MulitiSite, add a Setting Override for each of the following:

core.xmodindexnow_apikey - YOUR-API-KEY
core.xmodindexnow_keyfileurl - https://secondarydomain.com/YOUR-API-KEY.txt

You can save the files in the web root of your primary (default) domain as they're all going to be different and MultiSite configuration will allow them to be picked up using the right secondary domain URL.  This is easiest, so I recommend doing this to host the key files.

Or, you could save them to each secondary domain, but if you do that, you'll need to modify the .htaccess file on that domain to serve the file.  Look at the robots.txt rewrite rule and duplicate that for the key file in the .htaccess file on the secondary domain(s), if you go this route.


Nick Hendler

Offline

 

Board footer