Git, Server & Deployment
.htaccess Redirect Generator
Describe the redirect you need and get a ready-to-paste Apache .htaccess rule.
Everything is generated in your browser — your URLs never leave the page.
Redirect setup
live
Format: old -> new. Paths start with /;
the destination may also be a full URL. Lines beginning with # are ignored.
Advanced options
Generated .htaccess
0 rulesNo rules yet
Enter your redirect details to generate .htaccess rules.
How it works
The generator writes standard mod_rewrite rules. Rules using
RewriteRule begin with RewriteEngine On; if the directive is already
enabled higher up, remove that line before you paste. Upload the result as
.htaccess in the directory you want to redirect from, and make sure
mod_rewrite is enabled. Path matching is literal, so dots and other regex
characters in your URLs are escaped for you. Invalid lines and risky destinations are
reported with a note instead of producing a broken rule. Nothing is uploaded — the
output is built entirely in your browser.