Htaccess Redirect Generator

Instant Website Review

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

www or non-www redirect is an important SEO factor. Using both in a website URLs decrease SEO score and search engine visibility. Our .htaccess redirect generator helps to redirect from www to non-www and Redirect from non-www to www.

To increase organic search visitors Set your preferred domain (www or non-www). It helps to prevent duplicate content issues.

Apache redirect www to non-www is possible using .htaccess file. Just generate redirect codes using our free .htaccess redirect code generator.

Generate www to non-www .htaccess code?

  1. Select Redirect from www to non-www
  2. Enter your domain name
  3. click get your .htaccess code button
  4. Copy the code to your .htaccess file

Generate non-www to www .htaccess code

  1. Select redirect from non-www to www
  2. Enter your domain name
  3. click get your .htaccess code button
  4. Copy the code to your .htaccess file