{"id":8574,"date":"2006-12-25T21:08:00","date_gmt":"2006-12-26T02:08:00","guid":{"rendered":"https:\/\/nuxx.net\/blog\/2006\/12\/25\/gallery-sitemap-problem\/"},"modified":"2026-07-01T11:35:02","modified_gmt":"2026-07-01T15:35:02","slug":"gallery-sitemap-problem","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2006\/12\/25\/gallery-sitemap-problem\/","title":{"rendered":"Gallery Sitemap Problem"},"content":{"rendered":"<p>For some reason (probably because of the size of <a href=\"http:\/\/nuxx.net\/gallery\">my gallery<\/a> and the number of sites hosted on the box) I&#8217;ve been having problems with Google being able to pull an <a href=\"http:\/\/en.wikipedia.org\/wiki\/Site_map\">XML sitemap<\/a> for the gallery. Google was apparantly timing out while attempting to download it. I&#8217;m not sure if some change was made on their end recently regarding the length of time which could be spend during sitemap downloads or what, but I think I found a solution:<\/p>\n<blockquote><p><tt>#!\/bin\/sh<\/p>\n<p>newfile=~\/www\/nuxx.net\/gallery\/sitemap.xml.new<br \/>\noldfile=~\/www\/nuxx.net\/gallery\/sitemap.xml<\/p>\n<p>\/usr\/local\/bin\/curl -Sso $newfile  http:\/\/nuxx.net\/gallery\/main.php?g2_view=sitemap.Sitemap<\/p>\n<p>if [ -d ~\/www\/nuxx.net\/gallery\/sitemap.xml.new ]; then<br \/>\n  mv $newfile $oldfile<br \/>\nfi<\/tt><\/p><\/blockquote>\n<p>Yes, I know it&#8217;s a hack, but running it every six hours should work around the problem.<\/p>\n<p><strong>UPDATE:<\/strong> Yep, I just realized this won&#8217;t work. The test argument needs to be changed to <tt>-f<\/tt> (or <tt>-e<\/tt>) because it&#8217;s not a directory. Doh!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason (probably because of the size of my gallery and the number of sites hosted on the box) I&#8217;ve been having problems with Google being able to pull an XML sitemap for the gallery. Google was apparantly timing out while attempting to download it. I&#8217;m not sure if some change was made on\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,34,4],"tags":[],"class_list":["post-8574","post","type-post","status-publish","format-standard","hentry","category-computers","category-moved-from-livejournal","category-nuxxnet"],"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=8574"}],"version-history":[{"count":1,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8574\/revisions"}],"predecessor-version":[{"id":13055,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/8574\/revisions\/13055"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=8574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=8574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=8574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}