Site map is crucial for a website.
Creating a sitemap is easy and convenient using some online tools, such as http://www.xml-sitemaps.com/. It can create a sitemap of up to 500 pages for you for free, in various formats.
It is a better method for the website itself to create a sitemap and submit it to search engines. This way, you are not limited by the number of pages and have full control over the structural information of your sitemap.
Here is a small category. Look at the source code. Easy to use. There are better demonstration examples.
'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
It’s really very convenient.