About the .htaccess Redirect Generator
The .htaccess Redirect Generator creates Apache redirect rules for moving pages and domains. Generate clean 301 (permanent) redirects, www to non-www rules, and HTTP to HTTPS rewrites without memorising mod_rewrite syntax. Copy the rules straight into your .htaccess file.
How to use the .htaccess Redirect Generator
- Choose the redirect type (single URL, www, or HTTPS).
- Enter the source and destination.
- Copy the generated rules into your .htaccess.
Frequently asked questions
Should I use 301 or 302?
Use 301 for permanent moves so search engines pass ranking value to the new URL. Use 302 only for temporary changes.
Where does .htaccess live?
In the root folder of your Apache site. Always back up the existing file before editing.