Website XML Sitemap Generator with Preview, Submit, and Stylesheet

This website XML sitemap generator is written in PHP. It's easy to use, 2 files, no database needed, easy configuration, you control what files are included in the XML Sitemap, written for flat-file directories. This Sitemap Generator includes auto-preview, create feature, and stylesheet for output.

Output is XML version 1.0 with UTF-8 encoding and complies with Schemas.org sitemap 0.9 requirements.

The website XML Sitemap Generator will read all the files in your directories. You can select and configure what files, folders, and extensions you want it to read or ignore.

Simply upload the (1) XML Sitemap Generator and (2) XSL stylesheet to your server root, access the PHP file, preview the files it's about to index, click Create, and you're done. **Note: if you don't want your sitemap styled, don't upload the included "sitemal.xsl" file.

View our sitemap. This is the result of what yours will look like also.


Website XML Sitemap Generator screenshot
sample file

Instructions

1. Download the package below (ZIP file)

2. Extract and open the 'sitemap-generator.php' file with a text editor (I recommend using Notepad++).

3. Edit the following lines (IMPORTANT):

  • Line 8: list the file extensions to include in your sitemap.
  • Line 11: list file names to ignore/filter.
  • Line 14: list folder names to ignore/filter.
  • Line 17: list files/folders to filter by name type
  • Line 234: change the URL to your website
  • Line 262: confirm the file name of the XML Sitemap to create (sitemap.xml)
  • Line 373: change the URL to match your website

(If somehow you screw up while editing, feel free to come back and re-download this package. I've included the URL to this page in Line 2 of the PHP file, for future reference.)

4. Upload both 'sitemap-generator.php' and 'sitemap.xsl' files to your server root directory.

5. Open a web browser and access the sitemap-generator.php file from your website.

6. Files will be listed in alphabetical order. Select the ones you want to include in your sitemap.xml file, un-check all the others.

7. Click "Create XML Sitemap" button. A new sitemap.xml file will be written to the same directory you're currently in, and you should now be looking at the styled sitemap.

8. You're done. Any time you later make changes to your file system, simply access the sitemap-generator.php file through a browser and create a new sitemap.


Download ZIP files Website XML Sitemap Generator
contact us to report broken links


Add Comment

Visitor Comments (2)

Topic: XML Sitemap Generator
Full StarFull StarFull StarFull StarFull Star 5/5 (2)
Facebookdel.icio.usStumbleUponDiggTechnoratiGoogle+RedditMySpaceTwitterLinkedIn
Full StarFull StarFull StarFull StarFull Star
Tom C. says...
The Sitemap Generator now includes an XSL stylesheet for your viewing pleasure.
31st December 2014 9:32pm
Full StarFull StarFull StarFull StarFull Star
Tom C. says...
Grin works great. I use this here on my website. Questions? Send me an email or leave a comment.
7th December 2014 12:52am
Page 1 of 1
Norton SafeWeb   Creative Commons License   search button