I am using ZenPhoto ver. 1.4.1.2 [7933] and have enabled the Sitemap plugin. I generated the Sitemap which is at
http://natureinfocus.com/sitemap.php. Google Webmaster Tools likes all the entries except for /ga​lle​rie​s/c​ach​e_h​tml​/si​tem​ap/​sit​ema​p-z​enp​hot​o-i​nde​x.x​ml which reports a 301 redirect:
URLs not followed
When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.
Is there something I can change in Zenphoto or .htaccess file to fix this?
Comments
The current sitemap generates a sitemap index file that points to sub sitemaps following the official sitemap specification. All sitemap files are indeed cached as static xml files within /cache_html/sitemap.
natureinfocus.com/galleries/sitemap.php
natureinfocus.com/galleries/?sitemap
natureinfocus.com/galleries/index.php?sitemap
All seem to generate the same sitemap like you described with links to xml files in the cache.
Since I've enabled mod rewrite in zenphoto I assumed I should use one of the first two?
Regardless of the sitemap used, if you go to http://web-sniffer.net/ and test http://natureinfocus.com/galleries it shows a 301 redirect.
Anyway, at least for http://natureinfocus.com/galleries it is the missing / at the end. So if the links complained about are indeed album links then we need to change internals as we probably need to add the trailing slash there directly.