.htaccess Tester
Test Apache RewriteRule patterns against URLs. See which rules match and where they redirect.
RewriteRules
Test URL
Result
Enter rules and a test URL to see results...
Quick Reference
| Flag | Meaning |
|---|---|
| [R=301] | Permanent redirect (301) |
| [R=302] | Temporary redirect (302) |
| [L] | Last rule — stop processing |
| [NC] | Case-insensitive match |
| [QSA] | Append original query string |
| ^ | Start of URL path |
| $ | End of URL path |
| (.*) | Capture everything — use $1 in target |
| %{HTTP_HOST} | The hostname (for RewriteCond) |
| %{HTTPS} | "on" or "off" (for RewriteCond) |
Processed in your browser. Nothing leaves your device.