Got some help from Evan offline. Changing my .htaccess resolved the issue.

RewriteEngine On

# NOTE: change this to your actual Laconica path; may be "/".
RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
RewriteRule (.*) index.php?p=$1 [L,QSA]

<FilesMatch "\.(ini)">
  Order allow,deny
</FilesMatch>

This will keep everyone in "www".domain.com where they started, even
if a link points too domain.com.

Thanks,


On Tue, Jun 23, 2009 at 6:18 PM, Laconica User<[email protected]> wrote:
> Hello,
>
> When a user logs into www.domain.com, they are logged in. If they then
> browse to domain.com (without "www") they are logged out - but when
> navigating back to www.domain.com they are logged back in. Any help is
> appreciated
>
> config.php
>
> <?
> $config['site']['name'] = "Domain.com";
> $config['site']['fancy'] = "true";
> $config['site']['theme'] = "mytheme";
> $config['site']['server'] = 'www.domain.com';
> $config['site']['path'] = '';
> $config['db']['database'] = "mysqli://root:<snip>@localhost/blahblah";
> $config['mail']['backend'] = 'SMTP';
> session_set_cookie_params(0, ''. $config['site']['path'] .'');
>
> .htaccess
>
> RewriteEngine On
>
> # NOTE: change this to your actual Laconica path; may be "/".
>
> RewriteBase /
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule (.*) index.php?p=$1 [L,QSA]
>
> <FilesMatch "\.(ini)">
>  Order allow,deny
> </FilesMatch>
>
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to