martyn1197
Member
Posted 4 months ago #
4.0b8 Beta says that it generates a static xml file (as well as a compressed one) yet nothing is visible in the root direct for the domain in question, when I enter the domain to the site map, http://www.myexampledomain.com/sitemap.xml it is visible in a browser but if I add the site map domain to Google webmaster tools it returns a Redirect Error 302 as it doesn't physically exist…
If I do physically add a sitemap.xml file to the directory as a test then the plugin replies with the following... 'There is still a sitemap.xml or sitemap.xml.gz file in your blog directory. Please delete them as no static files are used anymore'
Problem is that Google Webmaster tools is looking for a physical sitemap.xml file, can anyone help with a solution?
http://wordpress.org/extend/plugins/google-sitemap-generator/
Matthew Boynes
Member
Posted 3 months ago #
Google et al have no way of knowing if a file is static or dynamic, nor do they care, so I would guess that something else is amiss here. Does it give any more details about this redirect error? Most likely you have another plugin which is intercepting googlebot requests. I would try:
- Using "fetch as googlebot" to see what it says: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=158587
- Using cURL to pretend to be googlebot. Try these two commands in your terminal application of choice:
curl --head -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" "http://www.myexampledomain.com/sitemap.xml"
curl --head -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7" "http://www.myexampledomain.com/sitemap.xml"