January 6, 2024 5:03 am

How to generate XML sitemap

Today i am going to write a tutorial about sitemaps, Sitemap is a very important part of your website for SEO. Sitemaps is a protocol to inform search engines about your website links available for crawling. Most of the search engines accept XML formats so this article i will show you how to generate a XML sitemap.

XML-Sitemap

[wpdm_file id=21]DEMO

index.php

<?php

require_once 'class.sitemap.php';
    SiteMap::Generate('http://phpgang.com/', NULL, 'php', 'admin', 'languages,plugins,upgrade,uploads,wp-includes', 'class.sitemap.php,wp-cron.php');

?>
require_once 'class.sitemap.php';

Download package to get complete code.

Demo shows you a simple 1 link sitemap of PHPGang.com submit to all search engines and index your website today.

Author Huzoor Bux

I am Huzoor Bux from Karachi (Pakistan). I have been working as a PHP Developer from last 5+ years, and its my passion to learn new things and implement them as a practice. Basically I am a PHP developer but now days exploring more in HTML5, CSS and jQuery libraries.


Tutorial Categories:

One response to “How to generate XML sitemap”

  1. Gul Panra says:

    what is this not clear tutorial, i have created my own site for video, images and general purpose sitemaps but i m looking here for simple way that generated multiple sitemaps and then index those sitemaps in 1 xml sitemap so that we can put that into google webmasters tools or any other search engines thanks!

    I HAVE READING YOUR TUTORIALS AND IMPLEMENTING THESE AND ITS AWESOME BUT THAT ONE I FOUND VERY UGLY

Leave a Reply

Your email address will not be published. Required fields are marked *