XF 1.4 You Must Be Logged In

Some users are complaining that if they do not check the "stay logged in" button when they access the notification or conversation pulldowns it tells them that they need to be logged in. We recently relocated to a new server, that may be related.



Well-known member
Try these instead:

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

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


Well-known member
I notice that you have your forum in a subfolder called /forums. Just checking that you do have your .htaccess file in the root directory and not the forums directory?

Tracy Perry

Well-known member
Depends on how it's set up... you can either set it up so that all requests go to the www site or that all requests are stripped of any www prefix and goes to the site (which is what I do on all my forums).

Tracy Perry

Well-known member
The latter is a working link... when I try to click on your first one it gives a link that looks like
firewoodhoardersclub.com%24/#post-181343 (notice the %24 in the link).

I don't exactly understand what the problem is. The second should be correct as a link (as the www is stripped). You have another problem in your rewrite somewhere that is inserting that %24 part of a link.

Post your full .htaccess you have in your /forum directory here.
It is now just dropping only the /forums portion of the url. http://firewoodhoardersclub.com/forums/threads/whats-your-temp-what-ya-burnin-14-15.6742/

#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On
RewriteCond %{HTTP_HOST} www.firewoodhoardersclub.com$
RewriteRule ^(.*)$ http://firewoodhoardersclub.com/$1 [R=301,L]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /forums

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]


XenForo developer
Staff member
I don't see any redirection, but if you're inside the forums directory, your redirect may need to be:
RewriteRule ^(.*)$ http://firewoodhoardersclub.com/forums/$1 [R=301,L]