I've the next code during my Root htaccess file

RewriteCond % ^paperviewmagazine.com RewriteRule (.*) http://www.paperviewmagazine.com/$1 [R=301,L]

It really works acceptable for the primary site, however for my forums at /forums/ if a person misses from the www it'll show the page and never redirect towards the www.paperviewmagazine.com/forums/ rather.

I have to pressure the WWW to avoid anybody from signing in accidentally around the non-www because it wont possess the correct cookie qualifications for being able to access the website at www./forums/

Can anybody help?


If you're just attempting to route "site.com" to "www.site.com" then do:

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