Site maps are important for a website.
The easy and convenient way to create a sitemap is to use some online tools, such as http://www.xml-sitemaps.com/. It can create up to 500 pages of site maps for you free of charge, with a variety of formats.
It is a better way for the website itself to create a sitemap and submit it to a search engine. This way, you can not be limited by the number of pages, and you can completely control the structure of the site map information.
A small class is introduced here. Look at the source code. Easy to use. There are better examples of demos.
' Sitemapgenerator.php ' =Sitemapgenerator ("http://your.app.com/" ->addurl ("http://your.app.com",(' C '), ' daily ', ' 1 ' ->addurl ("Http://your.app.com/page1",(' C '), ' daily ', ' 0.5 ' ->addurl ("Http://your.app.com/page2",(' C '), ' daily ' ->addurl ("Http://your.app.com/page3",(' C ' ->addurl ("Http://your.app.com/page4" ->addurl ("Http://your.app.com/page/subpage1",(' C '), ' daily ', ' 0.4 ' ->addurl ("Http://your.app.com/page/subpage2",(' C '), ' daily ' ->addurl ("Http://your.app.com/page/subpage3",(' C ' ->addurl ("Http://your.app.com/page/subpage4" - - -> -> view code
is really handy.
http:// www.bkjia.com/PHPjc/675198.html www.bkjia.com true http:// www.bkjia.com/PHPjc/675198.html techarticle Sitemap is important for a website. The easy and convenient way to create a sitemap is to use some online tools, such as http://www.xml-sitemaps.com/. It can be created for you free of charge to ...