View Full Version : Adding www makes everything stop working
DaKirch
06-08-2015, 09:44 AM
We switched to a dedicated server and since then I have noticed a weird issue. If you goto mydomain.com everything loads fine. However if you goto www.mydomain.com it logs you out and some things do not load. If you go back too mydomain.com everything is fine again and you are logged in. I can not figure this out at all.
Path to Save Cookies is "/"
Cookie Domain is (blank)
Nothing appears in the drop down boxes
ForceHSS
06-08-2015, 10:25 AM
What do you have in your Site Name / URL / Contact Details and do you have a htaccess file in your ftp
Lynne
06-08-2015, 02:23 PM
Ask your host to do a redirect from www.site.com to just site.com .
Or, change your cookie domain (AdminCP > Settings > Options > Cookies and HTTP Header Options > Cookie Domain) to ".yoursite.com" (no quotes, but note the period at the beginning). You will probably need to clear your browser cookies after making this change.
CAG CheechDogg
06-08-2015, 02:29 PM
Just add the following to your .htaccess file and you should be good to go:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
thetechgenius
06-12-2015, 01:19 PM
This could be due to a few things.
This might not even be a server-sided issue, it could be a Domain DNS issue. It could also be an .htaccess/web.config issue. If it is a server-sided problem, check your Domain DNS on your server.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.