Pre-deployment redirect QA
Batch Redirect Rule Unit Tester
Prove how a proposed Apache or Nginx rule set handles expected URLs before deployment. See the matched conditions, captures, destination, status, next hop, and exact reason each case passed or failed.
Add data → Configure → Analyze
Build the test suite
Choose the server and add rules
Paste a configuration excerpt or choose a local text file.
Processed locally in your browser. Your files are not uploaded.
Add test cases and map columns
Use CSV or TSV. Only input_url is required.
Processed locally in your browser. Your files are not uploaded.
Configure comparison and scope
Defaults match common migration checks without hiding URL differences.
Parser readiness
Add rules to review supported and unsupported lines.
Test case warnings
These rows need attention. The remaining valid rows were still analyzed.
Review issues → Export
Simulation results
Baseline caution: The regression baseline records current simulated behavior. It does not certify that behavior as correct.
| Case | Input | Expected | Actual | Hops | Rule | Result | Issues |
|---|
Rule coverage
Covered rules handled at least one supplied case. Shadowed rules could match supplied inputs but were never reached. Unused rules matched none of the supplied inputs.
Failure clusters
Cases grouped by issue and responsible first redirect rule.
What the simulator checks
Review conditions, captures, substitutions, status, stop decisions, and every simulated hop.
Compare expected and actual status, destination, query behavior, chain depth, loops, and no-redirect cases.
See which rules were exercised, unused, or shadowed for the supplied test suite.
Safe supported syntax
Apache: RewriteEngine; RewriteCond for host, request URI, and query string; RewriteRule; Redirect; RedirectMatch; and common R/status, L, END, NC, QSA, QSD, and NE flags.
Nginx: return 301/302/307/308; rewrite with last, redirect, or permanent; and simple exact, prefix, and regex location contexts.
Unsupported directives are reported by line and are never treated as understood. This tool does not fetch live URLs or modify server files.
Recommended pre-deployment workflow
- Export the old-to-new URL plan from the Redirect Map Builder.
- Generate or paste the proposed Apache or Nginx rules.
- Add positive expectations and negative cases that must remain unchanged.
- Fix failures, loops, chains, query issues, and untested rules.
- Deploy to staging, rerun the suite against the real server, then keep the exported CSV as a regression test.
Frequently Asked Questions
Reviewed Jul 2026 · Sources and limitations
Review details: 2026-07-13 · Marc LaClear · v1.0.2
Reference sources:
- Apache mod_rewrite documentation
- Apache mod_alias Redirect documentation
- Nginx rewrite module documentation
- MDN URL API
- MDN Web Workers
Known limits:
- This is a deterministic simulator for a documented safe subset, not a byte-for-byte Apache or Nginx runtime.
- Includes, maps, filesystem tests, environment variables, application handlers, module-specific behavior, and unsupported directives are not simulated.
- Overmatching and shadowing findings are limited to the URLs supplied in the test suite; they do not prove universal safety.
- Regular-expression support intentionally excludes constructs that cannot be modeled within the bounded safe subset.
- Validate important redirect changes on staging and keep a rollback copy of the working server configuration.