Htaccess Redirect Generator

Htaccess Redirect Generator

Generate 301 redirect and rewrite rules for Apache.

Select redirect type:

The Htaccess Redirect Generator creates ready-to-use .htaccess rules for free — 301 redirects, www/non-www, HTTP-to-HTTPS and more — so you can manage redirects on Apache without memorising syntax.

Why use .htaccess redirects?

Redirects preserve SEO value when URLs change and enforce a single canonical version of your site (HTTPS, www or non-www). Writing .htaccess rules by hand is error-prone; this tool generates correct syntax you paste into your server file.

How to use the Htaccess Redirect Generator

  1. Choose the redirect type you need.
  2. Enter the source and target URLs.
  3. Copy the generated rules into your .htaccess file.

Key features

  • Free rule generation
  • 301 redirects, www and HTTPS rules
  • Correct Apache syntax
  • No sign-up required

Related tools

URL Rewriting Tool · Redirect Checker · Robots.txt Generator

Frequently asked questions

Is the Htaccess Redirect Generator free?

Yes, it is completely free.

Where does the .htaccess file go?

In the root directory of your Apache website.

Will a 301 keep my SEO?

Yes, 301 redirects pass most ranking signals to the new URL.

Does this work on Nginx?

No, .htaccess is for Apache; Nginx uses its own config.