| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
handy1
Joined: 28 Jun 2006 Posts: 17 Location: Appleton, WI
|
Posted: Thu Jun 29, 2006 2:52 pm Post subject: Google Sitmap Problem with "<lastmod>" Date |
|
|
I get Unix epoch time for the following KB sitemap. When you go to this sitemap the KB articles have the correct <lastmod> data and time. I'm assuming Google won't like this time, which never changes!
| Code: | <sitemap>
<loc>http://www.handymanxchange.com/sitemap-kbcat.xml</loc>
<lastmod>1970-01-01T00:00:00+00:00</lastmod>
</sitemap> |
Anyone have any fix?
If you need to check it out just click my webpage link and then append sitemaps.xml |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Jun 29, 2006 3:14 pm Post subject: Re: Google Sitmap Problem with "<lastmod>" Date |
|
|
Yes I see.
Together with Kb you should be very cautious about security.
You know you need cat and articles to have comments on for this to work.
So looking at the file :
open :
| Code: | | mx_ggsitemaps/includes/index_kb.php |
Find :
| Code: | | echo "\t\t" . '<lastmod>' . gmdate('Y-m-d\TH:i:s'.'+00:00', $last_ever ) . '</lastmod>' . "\n"; |
Replace with :
| Code: | | echo "\t\t" . '<lastmod>' . gmdate('Y-m-d\TH:i:s'.'+00:00', $last_kb_comment ) . '</lastmod>' . "\n"; |
and the last comment date for all kb cat should be now used as last mod date, as it should  |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Last edited by dcz on Thu Jun 29, 2006 9:11 pm; edited 1 time in total |
|
| Back to top |
|
 |
handy1
Joined: 28 Jun 2006 Posts: 17 Location: Appleton, WI
|
Posted: Thu Jun 29, 2006 8:11 pm Post subject: Re: Google Sitmap Problem with "<lastmod>" Date |
|
|
| dcz wrote: | | Together with Kb you should be very cautious about security. |
What do you mean by this? KB together with what sitemaps or phpbb?
I looked for the code to change in sitemap_kb.php, and it wasn't there. I found it in index_kb.php, changed it, and it seemed to work!
Thanks again! |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Thu Jun 29, 2006 8:44 pm Post subject: Re: Google Sitmap Problem with "<lastmod>" Date |
|
|
| handy1 wrote: | | dcz wrote: | | Together with Kb you should be very cautious about security. |
What do you mean by this? KB together with what sitemaps or phpbb?
|
The mod itself please read this and this.
Here are some more general advises about security.
Adding .htaccess with
| Code: | <Limit GET POST PUT>
Order Allow,Deny
Deny from All
</Limit> |
in it in every includes/ db/ and other module's includes folders for those running Apache is a wise advise as well.
As well Options -Indexes can be cool in the root's .htaccess.
For those lucky enough to run a single ip :
| Code: | Satisfy any
Order Deny,Allow
Allow from xxx.xxx.xxx.xxx
Deny from all |
where xxx.xxx.xxx.xxx is your ip (can be a list)
| handy1 wrote: |
I looked for the code to change in sitemap_kb.php, and it wasn't there. I found it in index_kb.php, changed it, and it seemed to work!
Thanks again! |
Oups I meant index_kb.php you are right
I edited my first post
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |