1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

remove www. from url's ?

Discussion in 'XenForo Questions and Support' started by ExpertPixels.com, Apr 24, 2013.

  1. ExpertPixels.com

    ExpertPixels.com 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
  2. Lycaon

    Lycaon Well-Known Member

    RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
    Jake Bunce likes this.
  3. ExpertPixels.com

    ExpertPixels.com Well-Known Member

    Cheers Lyaon appreciate that :)

Share This Page