Htaccess Redirect Generator

1. Select redirect type

2. Enter your domain name

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

3. Get your code

4. Copy the code to your .htaccess file

About Htaccess Redirect Generator

The htaccess redirects generator tool is meant to be used when implementing URLs changes, Web migrations or when configuring your Website canonical URLs versions those that are meant to be indexed and ranked, while avoiding losing your former or non-canonical URLs traffic and rankings by referring your users and search bots to their new or canonical URLs versions via permanent redirects (with 301 http status).

The generator wants to facilitate the implementation of the most common Web redirects scenarios via htaccess, by generating the necessary rewrite code to be pasted in your htaccess file in case you're using an Apache Web Server.

Before implementing any changes on your htaccess code, remember to make a back up copy of it, in case something goes wrong and as soon as you implement the changes, validate that the meant to be redirected URLs are indeed going with the right 301 http status where you wanted them to.

Select the desired redirect scenario and obtain a personalized redirect code generated based on your input, ready to copy & paste in your htaccess file.