Create a sitemap with php_PHP tutorial

WBOY
Release: 2016-07-13 10:41:58
Original
1618 people have browsed it

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.

Create a sitemap with php_PHP tutorial '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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/675198.htmlTechArticleSitemap is crucial for a website. An 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 for free up to...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!