Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Redirect Mapper.

Features

  • Load redirect rules from CSV or JSON files
  • Detect redirect loops (A → B → A) before they hit production
  • Find redirect chains (A → B → C → D) and warn about depth
  • Validate HTTP status codes (301 vs 302 vs 307/308)
  • Catch protocol downgrades (HTTPS → HTTP)
  • Flag trailing slash inconsistencies
  • Detect self-referencing redirects
  • Multiple output formats: text, CSV, or JSON report
  • Configurable max chain depth
  • Strict mode for CI/CD pipelines
  • Python stdlib only — zero dependencies

Quick Start

bash
# 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.txt
Chapter 2

Input Formats

Follow this guide to get Redirect Mapper up and running in your environment.

Input Formats

CSV Format

csv
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

JSON Format

json
[
    {"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}
]

CLI Flags

FlagDescription
--input, -iPath to redirect rules file, CSV or JSON (required)
--format, -fOutput format: text, csv, or json (default: text)
--output, -oWrite output to file instead of stdout
--max-depthMaximum redirect chain depth (default: 10)
--strictExit 1 if any warnings found
--quiet, -qOnly show errors, suppress warnings and info
--verbose, -vEnable debug logging
Chapter 3
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Redirect Mapper and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Redirect Mapper v1.0.0 — Free Preview