Skip to content
Accessibility
Theme
Text size
High contrast
Limit animations
Readable fontAtkinson Hyperlegible
Increased text spacing
Underline links
Always show focus

Runs in your browser — nothing you paste is uploaded.

.htaccess Redirect Tester

Paste your Apache rewrite/redirect rules and a test path to see where a request lands and with what status. Supports RewriteRule, Redirect and RedirectMatch. Runs in your browser.

Enter the request path (e.g. /blog/hello-world).


    

What it does

It applies your rules to the test path top-to-bottom, just like Apache: RewriteRule patterns are matched (with R for redirects, L to stop, NC for case-insensitive), and Redirect / RedirectMatch produce redirects. You get the final URL and HTTP status.

Supported

Regex patterns and $1 back-references, [R=301,L,NC] flags, prefix Redirect, and RedirectMatch regex redirects.

Limitations

RewriteCond conditions (host, query string, existence checks) are skipped — they can change real behaviour, so treat this as a rule-logic sanity check, not a full mod_rewrite engine. Always confirm on a staging server.

Frequently asked questions

Does this fully emulate mod_rewrite?

No. It applies RewriteRule, Redirect and RedirectMatch with common flags but skips RewriteCond conditions (host, query string, file checks). Treat it as a rule-logic sanity check, not a replacement for testing on a server.

Which flags are supported?

R (with a status code), L and NC on RewriteRule, plus status codes on Redirect and RedirectMatch.

Related tools