Skip to content

sandalon/sitemap-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Validate the sitemap for a production site

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published