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. www.yourdomain.com/blog/page.html to yourdomain.com/blog/page.html
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>