Blog

XML Sitemaps in PHP

XML Sitemap

Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site.

At typical Sitemap (usually called Sitemap, with a capital S, also known as Google Sitemap) is an XML file with the following structure:

http://www.example.com/catalog?item=74&desc=vacation_newfoundland
2004-12-23T18:00:15+00:00

Of course, the <url></url> section is repeated for each URL you want to include in the Sitemap file.

This example is a static XML file. A dynamic site (based on a database) has to create a dynamic Sitemap (generated and updated by a script, not manually).

code

 

 

Comments (6)

  • sikis izle Reply

    It is truly a great and helpful piece of info. I’m happy that you simply shared this useful information with us. Please keep us informed like this. Thank you for sharing.

    April 14, 2016 at 5:05 am
  • sikis izle Reply

    Ein guter Blog! Ich werde ein paar von diesen Lesezeichen ..

    May 1, 2016 at 1:36 pm
  • sikis izle Reply

    Usted tiene un blog fabuloso gracias.

    May 7, 2016 at 4:54 pm
  • order now Reply

    Esta debe ser la mejor colección de blogs sitio web que he encontrado a cabo.

    May 11, 2016 at 3:40 pm
  • michael kors handbags Reply

    Hiya! I just wish to give an enormous thumbs up for the great info you’ve got right here on this post. I might be coming back to your blog for extra soon.
    michael kors handbags [url=http://tiny.gl/mkhcc]michael kors handbags[/url]

    July 22, 2016 at 6:45 pm
  • Zithasseo Reply

    You have share such a great informaon,Thanks for sharing with us.

    July 30, 2016 at 6:06 am

Leave a Reply