The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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
|
#3
|
|||
|
|||
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] |
#4
|
||||
|
||||
Don't allow people to login to the site without the www, redirect them to the proper url.
|
#5
|
|||
|
|||
Quote:
RewriteEngine on put RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite.com [NC] RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] |
Благодарность от: | ||
RichieBoy67 |
#7
|
|||
|
|||
Happy to help
|
#8
|
|||
|
|||
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} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS}s ^on(s)| RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|