Validate that both production and development sitemaps work correctly.
npm install -g sitemap-validator
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