This chapter covers the core features and capabilities of Redirect Mapper.
# Validate a CSV redirect map
python src/redirect_mapper.py --input examples/redirects.csv
# Validate a JSON redirect map
python src/redirect_mapper.py --input examples/redirects.json
# Get JSON output for CI/CD
python src/redirect_mapper.py --input examples/redirects.csv --format json
# Strict mode — fail on any warning
python src/redirect_mapper.py --input examples/redirects.csv --strict
# Custom max chain depth
python src/redirect_mapper.py --input examples/redirects.csv --max-depth 5
# Write report to file
python src/redirect_mapper.py --input examples/redirects.csv --output report.txtFollow this guide to get Redirect Mapper up and running in your environment.
old_url,new_url,status_code
https://www.example.com/old-page,https://www.example.com/new-page,301
https://www.example.com/temp-page,https://www.example.com/other,302[
{"old_url": "https://www.example.com/old-page", "new_url": "https://www.example.com/new-page", "status_code": 301},
{"old_url": "https://www.example.com/temp-page", "new_url": "https://www.example.com/other", "status_code": 302}
]| Flag | Description |
|---|---|
--input, -i | Path to redirect rules file, CSV or JSON (required) |
--format, -f | Output format: text, csv, or json (default: text) |
--output, -o | Write output to file instead of stdout |
--max-depth | Maximum redirect chain depth (default: 10) |
--strict | Exit 1 if any warnings found |
--quiet, -q | Only show errors, suppress warnings and info |
--verbose, -v | Enable debug logging |
Get the full Redirect Mapper and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.