Info
- 3 posts
- 2 voices
- Started 2 years ago by chandersbs
- Latest reply from chandersbs
- This topic is resolved
Redirecting non-www to www version
-
- Posted 2 years ago #
My site is both www and non-www. If I'm logged in the www version and I visit the non-www version, it shows that I'm not logged in.
I just want to keep only the www version, I know this can be done via redirect, but how exactly for bbpress does this work.
Thanks.
-
- Posted 2 years ago #
Add
RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/ [L,R=301]to your .htaccess (right under RewriteEngine On)
-
- Posted 2 years ago #
Thanks.
I tried that code.
The result:
http://domain.com now goes nicely to http://www.domain.comIf I encounter problems, I'll let it be known.
-
You must log in to post.