About the .htaccess Redirect Generator
Create Apache .htaccess rules without memorising the syntax: 301 and 302 page redirects, moving a whole domain, forcing HTTPS, adding or removing www, removing .html or .php extensions and custom error pages.
How to use it
- Choose the rules you need and fill in the details.
- Copy the generated code.
- Paste it at the top of the .htaccess file in your site's root folder and test.
- Free, no sign-up
- Runs in your browser — private
- Works on mobile and desktop
Frequently asked questions
Is the .htaccess Redirect Generator free?
Yes. The .htaccess Redirect Generator is completely free to use, with no sign-up or usage limits beyond fair-use protection.
Is my data private?
This tool runs entirely in your browser — nothing you enter is uploaded or stored on our servers.
Will this work on my host?
It works on any Apache or LiteSpeed server with mod_rewrite enabled, which includes most shared hosts. Nginx servers do not use .htaccess files. Always back up your current .htaccess first.