ymigval / laravel-indexnow

Laravel Service Library for notifying search engines about the latest content changes on their URLs using IndexNow.
MIT License
26 stars 2 forks source link

Multidomain example #1

Closed Fayozjon closed 8 months ago

Fayozjon commented 8 months ago

Hello. Can you show how to integrate on saas (multidomain)?

ymigval commented 8 months ago

You can host or create an implementation to use a specific text key file for each subdomain and instruct the package which key file to use.

Example:

IndexNow::keyFile('https://nature.example.com/8bbf5df8bbaa457aab35bb3ccbb99aec.txt')
   ->submit('https://nature.example.com/cats');

Remember to update the package to use this feature.

Fayozjon commented 8 months ago

Thanks dude! Awesome!