How can I allow googlebot to crawl my sitemap? .htaccess
-
So I want google to be able to crawl my sitemap but I don’t want other people to be able to see or view my sitemap, here’s my current code
Order deny,allow
Deny from all
SetEnvIfNoCase User-Agent “Googlebot” goodbot<Files “sitemap_index.xml”>
deny from all
Allow from env=goodbot
</Files>Currently this is giving a 403 forbidden error on google search console when I try to submit sitemap.
Also. I would like to change my sitemap URL so I can keep it hidden; how can I do this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How can I allow googlebot to crawl my sitemap? .htaccess’ is closed to new replies.