|
For sitemaps..
For sitemaps I prefer to automatically generate my own using PHP.
The PHP script checks a cached file to see if the file is less than one day old, if it is, then it just sends the cache to the screen, otherwise it re-generates the cached xml file like this:
First it creates a list of "static links", links to pages that just contain static information (such as index page, registration, about, contact pages etc), then it creates a list of "dynamic links" from the database so that all relevant pages are listed. As google sitemaps are just URL links, it is important that the <title> tags of the linked pages contain relevant information, or the crawling of the pages will no do much seo wise.
Using the above method also it is easier to create html static sitemap pages that are updated every day, for other web-crawlers such as yahoo or msn, that don't (afaik) use any sitemap.xml files.
|