PDA

View Full Version : Site keeps logging me out.


ProjectCamaro
12-24-2012, 01:48 PM
When I go to my site if I use the "www" everything works fine but if I don't use it then I won't be logged in.

I deleted all my cookies and tried again and have the same result. I'm sure this is an easy fix and I'm an idiot for not knowing what to do but I do appreciate any help.

kh99
12-24-2012, 01:54 PM
Go to the "Cookies and HTTP Header Options" in the admincp and read the description on the "Cookie Domain" section. That might solve the issue you described, but I've heard people say that it's better to use an entry in the .htaccess file to redirect all requests to one domain name.

ProjectCamaro
12-24-2012, 02:17 PM
Go to the "Cookies and HTTP Header Options" in the admincp and read the description on the "Cookie Domain" section. That might solve the issue you described, but I've heard people say that it's better to use an entry in the .htaccess file to redirect all requests to one domain name.

Thank you for the suggestion but that looks correct. I'm using vba CMPS so I have it set to .mysite.com as it states I should.

What would I have to do in the .htaccess file to make it work (Sorry, newbie) and would an automatic redirect penalize me in Google searches?

Lynne
12-24-2012, 03:49 PM
google brings up this - http://www.htaccessredirect.net/index.php

and entering something into the first line, I get:
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^.mysite.com[nc]
RewriteRule ^(.*)$ http://www..mysite.com/$1 [r=301,nc]

CAG CheechDogg
12-24-2012, 06:19 PM
I use this instead

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

ProjectCamaro
12-25-2012, 03:39 AM
I'm now thinking it isn't something with the site after all. I have this problem on my desktop but after trying on my laptop everything works fine. I just started building the website so I don't have a large user base to talk to but I will see if they are having any problems before I do anything.

--------------- Added 1356410376 at 1356410376 ---------------

Thank you all for your help though, it is greatly appreciated.