a

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

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 backup 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. If you would like me to include an additional redirect scenario, please let me know by sending me a message over here .