planetzu
Member
Hello,
I have been having issue with users getting logged out automatically even when they are still active on the forum. I guess the problem is with cookie scope due to inconsistent URLs as discussed in this post:
http://xenforo.com/community/threads/keep-logging-out-of-xf-with-chrome.22968/#post-286837
The forum is in a subdirectory "/community" and I am trying to redirect all non-www pages to www. This is because I have a wordpress blog in the root which already uses 'non-www' to 'www' redirection.
Also in the 'Basic Board Information' I have given the following as the URL:
http://www.yoursite.com/community and the index page route is 'forums/'
I used the following in the forum htaccess but it isn't redirecting:
RewriteCond %{HTTP_HOST} ^yoursite\.com$
RewriteRule ^(.*)$ http://www.yoursite.com/community/$1 [R=301,L]
Is there anything I am doing wrong?
I basically want to redirect http://yoursite.com/community/ to http://www.yoursite.com/community/
I have been having issue with users getting logged out automatically even when they are still active on the forum. I guess the problem is with cookie scope due to inconsistent URLs as discussed in this post:
http://xenforo.com/community/threads/keep-logging-out-of-xf-with-chrome.22968/#post-286837
The forum is in a subdirectory "/community" and I am trying to redirect all non-www pages to www. This is because I have a wordpress blog in the root which already uses 'non-www' to 'www' redirection.
Also in the 'Basic Board Information' I have given the following as the URL:
http://www.yoursite.com/community and the index page route is 'forums/'
I used the following in the forum htaccess but it isn't redirecting:
RewriteCond %{HTTP_HOST} ^yoursite\.com$
RewriteRule ^(.*)$ http://www.yoursite.com/community/$1 [R=301,L]
Is there anything I am doing wrong?
I basically want to redirect http://yoursite.com/community/ to http://www.yoursite.com/community/
Last edited: