.htaccess Redirect Generator
Format per line: “/old /new” or “/old https://target”. The file goes in the root directory (Apache with mod_rewrite).
Create .htaccess redirects
The generator builds redirect rules for Apache servers. Common cases like “force HTTPS” or “unify www” are available as switches; individual redirects are entered line by line.
- 301 vs. 302: 301 is a permanent redirect (SEO-relevant), 302 a temporary one.
- Force HTTPS: Automatically redirects all HTTP traffic to HTTPS.
- www: Unify your domain – either always with or always without www.
