Htaccess Redirect Generator

Free Small SEO Tools

Htaccess Redirect Generator

1. Select redirect type

Redirect www to non-www

Redirect non-www to www

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

Our free tool generates .htaccess code to redirect www to non-www URLs, or to redirect visitors from the non-www to www version of your domain.

Our www Redirect Generator uses search engine friendly 301 redirects, and redirects both the top-level domain and all internal links.

Redirect www to non-www, or redirect non-www to www domains.

Redirects all URLs, including subpages

e.g. to

Just enter your domain name, select the type of redirect code you want, and then copy your code from the box below to the .htaccess file on your website.<p>


If you like our site and tool, please support us by linking to it.

Code to be added to your site
Your button will look like this

htaccess Redirect Generator