- Auto Crawl
- Ignore broken links (404 error response)
- Ignore
mailto://
links - Ignore
nofollow
andnoindex
pages - Ignore URLs list
- Checking allowed extensions
- Custom user agent
- Custom save path
- SEO optimized
- Complies with all requirements of the Sitemap standard
- Easy to use
- Cron friendly
- Simple
include "sitemap.php"
$xml_new = new SiteMapXML('yourwebsite.com');
$xml_new->makeXML();
include "sitemap.php"
$xml_new = new SiteMapXML('yourwebsite.com','https');
$xml_new->makeXML();
- Advanced
include "sitemap.php"
$xml_new = new SiteMapXML('www.yourwebsite.com', 'https', '/home/user/public_html/sitemap_folder');
$xml_new->show_lastmod = false;
$xml_new->show_changefreq = true;
$xml_new->changefreq = SiteMapXML::WEEKLY;
$xml_new->user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) Custom Agent";
$xml_new->file_name = "sitemap-1.xml";
$xml_new->no_follow = array('/secret_url', '/login.php', '/404/'); //custom pages
$xml_new->allowed_extensions = array('.php', '.html');
$xml_new->makeXML();
Requires PHP v5.3+ No dependencies are needed.
- Upload
sitemap.php
to your server - Create new php file or add to existing one
- Include class and use it like in examples above
Want to contribute? Great!
Free Software!