XML Sitemaps Generator

Author Topic: <lastmod> info not showing in site maps  (Read 12052 times)

richxml

  • Approved member
  • *
  • Posts: 3
<lastmod> info not showing in site maps
« on: February 06, 2012, 12:02:43 PM »
Have an interesting problem with a site that we recently generated a site map for, only to discover that the sitemap generated wasn't showing any <lastmod> information, i.e. time and date, this despite the fact that we had selected 'use server response' from the options.

I believe (having read an earlier post on here) this info is pulled from the "last-modified" http header returned by the server.

I don't believe this is an isolated incident of just one site on the server because several other randomly selected sites on the same shared server are missing this information.

What settings should we be looking for on the server to ensure that this information is provided?

EDIT. Can you move this into the 'Free online sitemap generator category'.
« Last Edit: February 06, 2012, 01:10:54 PM by richxml »

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: <lastmod> info not showing in site maps
« Reply #1 on: February 06, 2012, 02:42:52 PM »
Hello,

can you please let me know an example URL that has incorrect lastmod attribute assigned in sitemap?
Please check with http headers viewer that last modification http header is returned by server: http://www.xml-sitemaps.com/http-headers-viewer.html
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

richxml

  • Approved member
  • *
  • Posts: 3
Re: <lastmod> info not showing in site maps
« Reply #2 on: February 06, 2012, 03:15:05 PM »
Hi Oleg,

The website is on a shared server and it would appear that the hosting company carried out tests on other sites residing on this server and the same problem was/is occurring.

I've checked the header info using your link provided, and compared it to a site where the <lastmod> info is showing, and they appear to be nearly the same (apart from file size) so everyone is scratching their heads as to why the <lastmod> info isn't showing in the sitemap.

I've emailed you with the domain name and the hosting company - I tried sending you a private message but received the following message: 'An Error Has Occurred! - You are not allowed to send personal messages'.



XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10621
Re: <lastmod> info not showing in site maps
« Reply #3 on: February 06, 2012, 05:00:11 PM »
Hello,

replied to your email. Looks like your server doesn't return "last-modified" http headers.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

richxml

  • Approved member
  • *
  • Posts: 3
Re: <lastmod> info not showing in site maps
« Reply #4 on: February 06, 2012, 05:19:10 PM »
Hi Oleg,

Thanks for your reply.

How I missed that info on the raw header information I don't know.

However, for any guests reading this post, the Raw HTTP Headers for the website with the <lastmod> tag looks like:

HTTP/1.1 200 OK
Date: Mon, 06 Feb 2012 17:06:59 GMT
Server: Apache
Last-Modified: Tue, 10 Jan 2012 22:37:18 GMT
Accept-Ranges: bytes
Content-Length: 6189
Connection: close
Content-Type: text/html

And the website with the missing <lastmod> tag looks like:

HTTP/1.1 200 OK
Date: Mon, 06 Feb 2012 17:04:36 GMT
Server: Apache
Accept-Ranges: bytes
Content-Length: 3967
Connection: close
Content-Type: text/html

I need to have a word with the hosting company now that we know what is missing.

Once again Oleg, thank you for your help with this.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2