Htaccess Redirect Generator

Search Engine Optimization

Htaccess Redirect Generator


1. Select redirect type





2. Enter your domain name


Do not include www. Domain name only - e.g. yourdomain.com

3. Get your code


4. Copy the code to your .htaccess file



About Htaccess Redirect Generator

What is Htaccess?

Htaccess is a configuration file used by the Apache HTTP server. It allows for overriding the server's default configuration.


URL redirects are generally used to redirect Web site visitors from an old URL to a new one. It is also used to redirect visitors from the non-www version of a website to its www version and vice-verse, or from HTTP to HTTPS pages.

Manually creating a URL redirect rule involves a lot of steps, and is generally considered a tedious task. Fortunately, this Htaccess Redirect Generator tool makes the process super easy, fast, and simple. This free online tool generates a valid and correct .htaccess rule for different types of redirects.

How to use Htaccess Redirect Generator Tool?

This tool is quite easy and simple to use. Just enter the Old URL, New URL and Redirect Type, and click on the Generate button.

You can also check the Redirect Type drop-down box to select from the various redirect types.

The generated rule will be shown in the output box. You can copy it and use it in your .htaccess file.

How to generate 301 redirects using htaccess?

You can easily generate 301 redirects using htaccess by using this Htaccess Redirect Generator Tool.

How to generate 302 redirects using htaccess?

You can easily generate 302 redirects using htaccess by using this Htaccess Redirect Generator Tool.

How to generate www redirects using htaccess?

You can easily generate www redirects using htaccess by using this Htaccess Redirect Generator Tool.

How to generate non-www redirects using htaccess?

You can easily generate non-www redirects using htaccess by using this Htaccess Redirect Generator Tool.

How to generate HTTP to HTTPS redirects using htaccess?

You can easily generate HTTP to HTTPS redirects using htaccess by using this Htaccess Redirect Generator Tool.

How to generate HTTPS to HTTP redirects using htaccess?

You can easily generate HTTPS to HTTP redirects using htaccess by using this Htaccess Redirect Generator Tool.


Why is Htaccess Redirect Important?

Htaccess redirect is important because it allows you to redirect traffic from one URL to another. This can be useful if you want to redirect traffic from an old URL to a new URL, or if you want to redirect traffic from a non-existent URL to an existing URL.