.htaccess Redirect Generator
Generate an Apache .htaccess redirect rule for a URL change.
Add this line to your site's .htaccess file (Apache servers only).
Worth Knowing
An .htaccess redirect tells an Apache server to send visitors and search engines from an old URL to a new one, and choosing the right type matters enormously for SEO: a 301 (permanent) passes the old page's ranking value to the new one, while a 302 (temporary) does not. Using a 302 for a permanent move is a common mistake that quietly loses hard-won search rankings. These rules only work on Apache servers; Nginx and others use entirely different configuration.
How to Use
- Paste or type your from path into the .htaccess Redirect Generator above.
- Set any additional options: To URL, Redirect type.
- The output updates instantly and is ready to copy.
- Add this line to your site's .htaccess file (Apache servers only).