force www on forum

I want the forum to go to if they go to This will make for a more consistent user experience and for better SEO.

Yet, I put this into my htaccess it didn't help.

RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

How do I make it work?


Well-known member
Try this:

order deny,allow

RewriteCond %{http_host} ^ [nc]
RewriteRule ^(.*)$$1 [r=301,nc]