Htaccess Redirect Generator
Generate Apache .htaccess Redirect directives for 301/302 URL redirects.
Output
Add one or more from-path to destination-URL pairs and generate ready-to-use Apache Redirect directives for your .htaccess file, with a choice of permanent (301) or temporary (302) redirects.
How to use
- Enter the path to redirect from and the full destination URL.
- Choose 301 (permanent) or 302 (temporary) for each redirect.
- Copy the generated .htaccess directives into your Apache config.
Frequently asked questions
- What is the difference between 301 and 302?
- 301 tells browsers and search engines the move is permanent and passes SEO value; 302 signals a temporary redirect.
- Can I add multiple redirects?
- Yes, use Add row to create as many from/to pairs as you need; each becomes its own Redirect line.
- Where do I put the generated code?
- Paste the output near the top of your site's .htaccess file, before other rewrite rules if any exist.