PHP Create site Map _php Tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.