sitemap-validator
v0.5.3
Published
Validate the URLs in a sitemap
Downloads
11
Readme
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