Generator
HTACCESS Redirect Generator
Generate .htaccess rules for Apache server redirects.
301/302 codesMultiple redirectsCopy ready
Redirects
Add rules one by one.
Generated .htaccess code
Copy to your .htaccess file.
Redirect 301 /old-page /new-page
Frequently Asked Questions
What is an .htaccess file?
.htaccess is a configuration file for Apache web servers that allows you to set redirects, rewrite URLs, and control access without modifying server configuration files.
What is the difference between 301 and 302 redirects?
301 (Moved Permanently) is permanent and passes SEO value; 302 (Found) is temporary. Use 301 for permanent redirects and 302 for temporary ones.
Where should I place the .htaccess file?
Place .htaccess in the root directory of your website or in the specific folder where you want the rules to apply.
Can I redirect entire domains?
Yes, you can redirect from one domain to another using the Redirect directive or RewriteCond rules in .htaccess.