.htaccess Redirect Generator

What is .htaccess Redirect Generator?

Free online .htaccess redirect generator. Quickly create 301/302 redirects, force HTTPS, www redirects, and other Apache server rules. Essential for website migration and SEO.

Use Cases

  • Website migration
  • HTTPS forcing
  • Domain redirect
  • SEO optimization

How to Use

  1. 1Choose redirect type (301/302/HTTPS/www)
  2. 2Enter source and target URLs
  3. 3Generate .htaccess code
  4. 4Copy and apply to server

Features

  • 301/302 redirect
  • Force HTTPS
  • www redirect
  • Copy-paste ready

FAQ

What is the difference between 301 and 302?

301 is permanent (SEO authority transfers), 302 is temporary.

Can I use the generated code directly?

Yes — paste it into your servers .htaccess file.

Is this tool free?

Yes — completely free. No accounts, no paywalls. Just open the page and go.

Does my data get sent to a server?

No. Everything runs in your browser. Your data never leaves your device.

Does it work on my phone?

Absolutely. Works great on phones, tablets, and desktops alike.

How fast is it?

Instant for most inputs. Large datasets might take a second or two.