Is there a way to specify the location of generated sitemap files using the lastest version of the Google Sitemap Generator?
Version is: 1.0.0.0? (a very un-google version number, lol):
> sudo /usr/local/google-sitemap-generator/bin/sitemap-daemon -v
Google Sitemap Generator (Beta) Version [1.0.0.0]
The dashboard has a option of "Sitemap file name" but there is no option to specify the destination directory? It always places the generated sitemap XML files in the document root. I assume it discovers the document root from reading the webserver logs.
Why do I want to put the sitemap files in another directory?
The document root is no good for our deployment method because it is a symlink to the current deployment directory which changes daily. In order for the sitemaps to appear as if they are at the url root (i.e. http://www.example.com/sitemap.xml
), we use a alias rule to map XML files to where we actually keep them, e.g. using nginx:
# Alias all XML files (e.g. Rss) to shared directory
location ~* /(.*\.xml)$ {
alias /var/www/live/shared/xml/$1;
}