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

What is the .htaccess Redirect Generator tool?

This is a simle tool that automatically creates the code to plug into your .htaccess file to quickly and easily redirect all traffic to the non-www version of your site to the www version or vice versa if your preferred version is without the www. Copy the generated text from the box and paste it into your .htaccess file on your web server. Using this type of 301 automatic permanent redirect will help Google and other search engines to index the correct version of your site URLs. It also helps pass any link equity that is pointing to the wrong version of your URLs so the correct URLs get all the link juice they deserve.