next-sitemap
next-sitemap copied to clipboard
I want the host directive to be an optional entry.
Is your feature request related to a problem? Please describe.
I am getting a "syntax error" at the host directive. (This is the result of a crawler run by a search engine called bing.)
Describe the solution you'd like
robotsTxtOptions: {
additionalSitemaps: [
"example.com" + "foo",
],
policies: [
{
userAgent: '*',
allow: '/',
},
],
hideHost: true, // ← Please add this option!
},
Describe alternatives you've considered
And now google doesn't seem to recognize the Host directive either!
https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt?hl=en#syntax https://stackoverflow.com/questions/22011604/can-i-use-the-host-directive-in-robots-txt
Thanks for reading.
Additional context
Temporary workaround found here: https://github.com/iamvishnusankar/next-sitemap/issues/381#issuecomment-1268146841
thx!!!!!
Closing this issue due to inactivity.