.htaccess Redirect Generator
Build Apache redirect rules for pages, folders, domain moves and HTTPS, and test them.
Status code
Fill in the form to start
From
—
To
—
Rules
—
Lines
—
Hops
—
- RequestWaiting for inputWhat the visitor asks for
- Rule—First rule that matches
- Response—Status and Location header
- Lands on—Final address
Your redirect rules
Choose what you are moving and enter the addresses above. Each rule appears here with a plain-English explanation, ready to copy.
The .htaccess code0 lines
# Your rules will appear here.
Test a URL against these rules
Simulated in your browser with the same logic as the generated rules. Other rules on your server, plugins and caches can change the real result.