Link to home
Start Free TrialLog in
Avatar of nsitedesigns
nsitedesignsFlag for United States of America

asked on

htaccess file to redirect site to www.

We need to create an htaccess file to redirect  torginol.com to WWW.torginol.com.  I went online and found this tool that generates code.  This is what it came up with.  Is this correct?

//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^torginol.com[nc]
RewriteRule ^(.*)$ http://www.torginol.com/$1 [r=301,nc]
 

Open in new window

Avatar of nsitedesigns
nsitedesigns
Flag of United States of America image

ASKER

Here is url for site that provided code:
http://www.htaccessredirect.net/redirect-www
ASKER CERTIFIED SOLUTION
Avatar of Nicholas
Nicholas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Turns out they didn't need to do this after all.  Thanks.