RM 1.0 Sign-in required again when clicking on a link

3rd AnGle

Well-known member
I have been experiencing this issue.. whenever we try to go to a link in Reosurce section we are getting logged out automatically. Please note that for other parts of the forum it works perfectly fine.

any help on this?
 

Brogan

XenForo moderator
Staff member
Are you swapping between the www and non-ww URLs?
Do you have htaccess rewrites set up?

Can you link to an example?
 

3rd AnGle

Well-known member
Are you swapping between the www and non-ww URLs?
Do you have htaccess rewrites set up?

Can you link to an example?
yes.. looks like there's a swap between www and non-www URLs

How can i resolve this issue.. how to set up the htaccess?
 

3rd AnGle

Well-known member
Ok i used this and works fine now..

<IfModule mod_rewrite.c>
RewriteEngine On

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

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(data|js|styles|install) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
Thanks a lot Brogan..

BTW there was a [NC] in RewriteCond %{HTTP_HOST} www.example\.com$ [NC] which i removed (because you did).. i hope there wont be any issue due to that
 
Top