.htaccess Redirect Generator
.htaccess Redirect GeneratorGenerate 301/302 redirect rules. Fast, free and secure — works in your browser. By AK Computer, Dwarka.
Processing...
How to use
- 1 Enter the source path or URL you want to redirect from.
- 2 Enter the destination URL and choose 301 permanent or 302 temporary.
- 3 Generate the RewriteRule or Redirect directive.
- 4 Copy the rule into your Apache .htaccess file.
Frequently Asked Questions
When should I use a 301 versus a 302 redirect?
Use a 301 for permanent moves so link equity transfers, and a 302 for temporary changes where the original URL will return.
Where do I put the generated rule?
Paste it into the .htaccess file in the relevant directory of your Apache server, usually the site root.
Does a 301 redirect help SEO?
Yes, a 301 passes most ranking signals to the new URL, which is why it is preferred when permanently moving content.