Generate .htaccess rules for 301 redirects, HTTPS and www.
The .htaccess redirect generator writes mod_rewrite rules for the most common redirects: single pages, a whole domain move, HTTPS, www or non-www and trailing slashes. The rules work on Apache and LiteSpeed servers, which run most shared hosting.
Permanent 301 redirects pass the ranking signals of the old URL to the new one, so they're essential after changing URLs, moving to HTTPS or migrating a website.
Old paths are escaped for regular expressions automatically.
Force HTTPS, www or non-www in one click.
Send a whole site to a new domain, keeping the paths.
Permanent or temporary redirects.
301 is permanent and passes ranking signals to the new URL; 302 is temporary and keeps the old URL in the index.
In the root folder of the website (often public_html). It's a hidden file, so enable hidden files in your file manager.
No, Nginx doesn't read .htaccess files. The redirects must be added to the server configuration.
Use the redirect checker to follow the redirect chain and see the status codes.