vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Adding www makes everything stop working (https://vborg.vbsupport.ru/showthread.php?t=318990)

DaKirch 06-08-2015 09:44 AM

Adding www makes everything stop working
 
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.


All times are GMT. The time now is 02:30 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
  • Page Generation 0.01032 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete