An easy way to test your RewriteRules against different URLs
Makes debugging Apache mod_rewrite rules easier
This tool lets you write and test your rewrite rules for Apache's mod_rewrite on-the-fly.
Apache Docs for RewriteRule · Apache URL Rewriting Guide
Want to help me build the new version of this tool? Please sign up for
my newsletter. I hate spam as much as anyone else, but I'd definitely appreciate the opportunity to talk to you about what you'd like to see in an improved version.
What works?
- RewriteRule statements with backreferences. The patterns are implemented as full POSIX-compliant regular expressions; I still need to work out any inconsistencies with mod_rewrite's parser.
What doesn't work?
- No support for RewriteCond statements right now. If you need it, please send an email to martin.melin on GMail saying so, to encourage me to finish the interface for setting the RewriteCond parameters (there are about thirty different variables available, which need to be easily set).
- RewriteMaps aren't supported because of the amount of work needed to implement it here and the ease with which one can test them already.
- RewriteBase isn't supported because it doesn't really make sense here.
- The other mod_rewrite options aren't interesting in this context either.
Although the site works without it, Javascript will make the tool a lot snappier. You need cookies enabled if you don't fancy entering your rules again for every tested request.