vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Forum redirecting to mydomain.com with out www (https://vborg.vbsupport.ru/showthread.php?t=172360)

henrysommer 03-07-2008 01:49 PM

Forum redirecting to mydomain.com with out www
 
Whenever I type in http://www.mydomain.com/forum, it sends me to http://mydomain.com/forum.

I'm trying to write some PHP that checks if a user is logged in, but of course it doesn't track it properly when I change subdomains like that.

So as I go back to my file I'm going to http://www.mydomain.com/logged_in.php, and the cookies were set for http://mydomain.com.

Checked everything in the admin cp, it has the leading www in front of it.

Any suggestions on how to fix this subdomain/redirecting issue?

shovel 03-07-2008 01:59 PM

Do you have an .htaccess performing a rewrite on the domain?

henrysommer 03-07-2008 02:33 PM

Only if vBulletin sets that up naturally.

I don't see .htaccess files, but I'm not in a shell, so I may not be able to see everything in the directory.

shovel 03-07-2008 02:49 PM

Alright, well let's look at it this way. You navigate to the www. While logged off, what do the links look like on the index page? Are they all www or just the domain.com?

vinzphua 03-08-2008 04:38 AM

If your hosting account comes with CPanel, you can use the File Manager in there to get to the .htaccess file.

If you cannot get into the .htaccess file. Get you WebHost to set it up so that all requests for mydomain.com permanently redirects to www.mydomain.com.

Alternatively, run your site without the 'www'. Then go into AdminCP, vBulletin Options-> SiteName / URL / Contact Details and change the Forum URL and Home Page URL so they don't have 'www'. If you have other web software, they'll need looking at too.

R1lover 03-08-2008 05:01 PM

change the forum name/location in vb options. :)


All times are GMT. The time now is 08:15 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.00939 seconds
  • Memory Usage 1,718KB
  • 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
  • (6)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