Can't Log In Without WWW.

TML

New Member
For some reason on my forum, when you don't place www. in front of the link, you cannot log in. It will say you're logged in but will then re-direct you back to the homepage and it will still say you're Not Logged In.

Then, when I go click on a thread, I'm logged in because www. is in my Site settings in the AdminCP.

Anyone know how to re-direct to www. every time? I have vBSEO installed so I can't really tamper with the htaccess unless I am told how to.
 

Morpheus

New Member
In your htaccess file you need to have these lines configured

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/forum/$1 [L,R=301]
 

TML

New Member
I've attempted at that.

Here's the problem, simply:

1) When you're not using www. in front of my domain, you are not logged in, even if you set it to remember me, and did not delete cookies.

2) When you try to log in without using www. , it will say you're Logged In, and will re-direct you to the homepage, in which you will not be logged in.
 
Top