• Welcome to Sitemap Generator Forum.
 

Last madified time & date in xml sitemap?

Started by syeyehya, December 07, 2009, 09:52:32 PM

Previous topic - Next topic

syeyehya

I understand that as I am using a php site then the last mod field is the last time that the page was accessed.

Is there a way to work around this issue in simple terms please?

It would be nice to reflect the real last modified times as this would stop the robots crawling the same pages over and over.

Many thanks,

Sye

XML-Sitemaps Support

Hello,

you will need to modify your website's PHP script by adding a lst modified http header with code similar to:
<?php
header
('Last-modified: ' . gmdate('D, d M Y H:i:s', $your_lastmod_date));
?>

syeyehya