0.5.3 • Published 4 years ago

sitemap-validator v0.5.3

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
4 years ago

Sitemap-Validator

Validate that both production and development sitemaps work correctly.

Installation

npm install -g sitemap-validator

Usage

Sitemap-Validator has the following options:

  • -l location
  • -c code
  • -s source domain
  • -d destination domain
  • -r enable domain remapping

To validate that the http://www.production.com/sitemap.xml file is working correctly, run the following command:

smv -l http://www.production.com/sitemap.xml -c 200

You can also test a sitemap with production domains in the xml against a staging or development server.

smv -l http://www.production.com/sitemap.xml -c 200 -r -s http://www.production.com -d http://staging.production.com