Hi Guys,

I was wondering if you might be able to give me some advice. I am currently using PHP Sitemap NG to produce sitemaps for my sites which are then automatically submitted to Google etc.

But clearly these sitemaps only reflect the content that was on the site when I produced it? The content on my sites is updated daily with new news stories and blog articles. Does it matter that these are not included or is there a way, either something existing or something I can code myself, that will keep my sitemap up to date with my content?

Hopefully that made some sense? Thanks, as always, for your time and help,

    A sitemap is a good way to tell a search engine about all the urls on your site -- it can help the engine find pages that might not be linked from any other page.

    If a search engine crawls your site, it will probably also crawl any links it finds on your site so it may find some of these new pages on its own.

    Updating your sitemap regularly is probably a good idea. If you are generating your entire sitemap using a script, you have most of the work done already. The trick would be to set up a cron job (if you're on a *nix machine) to run the script on a regular basis. If you're on a windows machine, you would need to schedule the script using the task schedule or whatever it is on windows servers.

      Hey sneakyimp,

      I'm not sure how I was managing without cron jobs before, but you are a legend. My life has just become a whole lot easier.

      Thanks for the help,

        Write a Reply...