![]() |
Login issue without www. included
My issue: I'm logged into my forum and my account stays logged in if I include www. in the front of the domain nanme.
However, If I take off www. and just write mydomain.com. I get logged out or just not logged in at all. However I am still logged in if I add www. in the right of the domain again. |
What do you have it set to in the url settings and you can add a htaccess file to stop uses using what you don't want them too
|
You mean these settings? http://prntscr.com/40fi0u
and here's my htaccess file RewriteEngine On # If you are having problem with "None Could Be Negotiated" errors in Apache, uncomment this to turn off MultiViews # Options -MultiViews RewriteCond %{REQUEST_URI} !(admincp/|dbseocp/|modcp/|cron|mobiquo|forumrunner|api\.php|reviewpost/|classifieds/|photopost/) RewriteRule ^((archive/)?(.*\.php(/.*)?))$ dbseo.php [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !/(admincp|dbseocp|modcp|clientscript|cpstyles|image s|reviewpost|classifieds|photopost)/ RewriteRule ^(.+)$ dbseo.php [L,QSA] |
Don't allow people to login to the site without the www, redirect them to the proper url.
|
Quote:
RewriteEngine on put RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] |
Quote:
|
Happy to help
|
I am having the same issue however the solution above redirects to the public_html folder like so:
www.site.com/public_html The .htaccess file is located outside the web directory. EDIT: I have fixed this by using the following code. I assume it works with SSL too. HTML Code:
RewriteCond %{HTTP_HOST} !^$ |
All times are GMT. The time now is 10:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|