Htaccess Redirect Generator

Search Engine Optimization
HostGator Web Hosting

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



HostGator Web Hosting

About Htaccess Redirect Generator

Quickly generate an htaccess file to Redirect from www to non-www and vice versa.

You can redirect all of the requests for www.yourdomain.com to domain.com by modifying your website's . htaccess file.