I have a PHP block of code in my template file that generates the sitemap.xml file for all dynamic urls with query strings for the site.
all query string urls are using 1 file /jobs/index.php so how can I give each url in the xml sitemap it's own <lastmod> date?
If I go by when the /jobs/index.php was last modified then all urls will have the same lastmod date. Would that be acceptable?
Also, the content does update dynamically every day via a javascript source file included in my template that is loaded from another server that delivers the latest job details. So even if I do not update the index.php or template.php files, doesn't mean that the content on the page has not changed or been updated.
I'm not sure how to go about getting the lastmod date for dynamically created urls that get content from an outside source.
What would you do?
No comments:
Post a Comment