remove www. from url's ?

Well-known member
Hey all,

Sorry for the newb question.. just struggling to force the xf install to use http:// only and not http://www

Ive not need to use this for some time and and getting errors when adding this to the .htaccess file:

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Thanks in Advanced for any assistance on this matter.

Regards, Darren