htaccess 301 Redirect Generator

Generate Apache .htaccess rules to redirect old URLs to new ones.

🔒 Runs in your browser⚡ Instant results🆓 Free, no sign-up

How to use the htaccess 301 Redirect Generator

  1. Fill in One "old path | new URL" per line. Sensible sample values are already there, so you will see a result immediately.
  2. The answer updates as you type. Nothing to submit.
  3. Compare a couple of scenarios by changing one number at a time. It is the quickest way to see what really matters.

What is it good for?

Generate Apache .htaccess rules to redirect old URLs to new ones. The formula is the standard one, so you can double-check the answer against a bank, a textbook or a spreadsheet.

A calculator is only as good as its inputs, so it helps to try a few different values and see how much each one changes the result. People most often reach for it when launching a new page and wanting it to look good when shared, tracking campaigns so you know which link brought the visitors and adding structured data without hand-writing JSON.

Good to know. Test redirects on a staging copy first. A typo in .htaccess can take a whole site offline.

Mistakes to avoid

Search engines may rewrite what you provide, so treat the output as your best suggestion, not a guarantee.

Test the result with the search engine’s own tools before you publish it widely.

Keep every page distinct. The same title or description on many pages is a common reason for weak listings.

Privacy

The numbers you type are used only to do the calculation, in your browser. Nothing is sent to us.

Frequently asked questions

Is htaccess 301 Redirect Generator free to use?

Yes, completely free. There is no sign-up, no watermark and no limit on how many times you use it.

Is my data safe when I use htaccess 301 Redirect Generator?

The numbers you type are used only for the calculation in your browser. Nothing is sent or stored.

How accurate is htaccess 301 Redirect Generator?

It uses the standard formula, so the arithmetic is exact. The real-world answer depends on whether your inputs match your real situation, so check anything important with a professional.

Any tips for using htaccess 301 Redirect Generator?

Test redirects on a staging copy first. A typo in .htaccess can take a whole site offline.