HTACCESS Redirect Generator
Generate Apache redirect rules.
A .htaccess redirect generator writes the Apache directives that send one URL to another — a page move, forcing HTTPS, or adding and removing www — with the correct syntax and status code. The rules are built in your browser for you to review before use.
Your input
Private, browser-based processingResults
Ready when you are
Enter your details above and run the tool.
How HTACCESS Redirect Generator works
What it does
Generate Apache redirect rules.
What you get
Apache redirect directives ready to review and copy.
On your device
Your input is processed in this browser. Copy or download the result when you are ready.
What if a check cannot finish?
Confirm your input and try again. A timeout, blocked request, or unavailable provider is not proof that a domain is broken. Internet measurements and third-party services have limits.
HTACCESS Redirect Generator — frequently asked questions
Where does the .htaccess file go?
In the directory it should apply to, usually the site root. It applies to that directory and everything beneath it.
Which status code should a permanent move use?
301. It tells browsers and search engines the move is permanent so they update to the new URL. Use 302 only when you genuinely intend to move back.
My rules do nothing. Why?
Apache must have AllowOverride enabled for the directory and mod_rewrite loaded. On nginx, .htaccess is ignored entirely — it is an Apache-only mechanism.