Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 09-09-2012, 10:02 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default www or not ?

Wondering why when im on my site it works fine obviously, but when i click a link to another part of the site it logs me out, or actually it doesn't log me out, but it is a version that im not signed into.?

http://mysite.com works fine
http://www.mysite.com im logged out.?

If i go up & remove the "www." from the url it reloads & im logged in.

Does it have to do with my "Forum URL" in the settings?
Quote:
Forum URL
URL of your forum.
Note: do not add a trailing slash. ('/')
In there i have http://mysite.com/forum


Any help..?
Thanks
Reply With Quote
  #2  
Old 09-09-2012, 10:05 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.htaccess file
Reply With Quote
  #3  
Old 09-09-2012, 10:31 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is what is there.?
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^gamelobby\.com$
RewriteRule ^(.*)$ http://www.gamelobby.com/$1 [R=301,L]
Do i need to edit out the "www" ?
Reply With Quote
  #4  
Old 09-10-2012, 03:47 AM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

....................
Reply With Quote
  #5  
Old 09-10-2012, 04:07 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamelobby View Post
Here is what is there.?
Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^gamelobby\.com$
RewriteRule ^(.*)$ http://www.gamelobby.com/$1 [R=301,L]
Do i need to edit out the "www" ?
That depends what u have in ur URL settings
Reply With Quote
  #6  
Old 09-10-2012, 04:18 PM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TSR View Post
Mine:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^offroadrc\.ca
RewriteRule ^(.*)$ http://www.offroadrc.ca/$1 [R=permanent,L]
So mine is the same as far as the "www".

The difference is at the end..
  • Yours - [R=permanent,L]
  • Mine - [R=301,L]


Quote:
Originally Posted by ForceHSS View Post
That depends what u have in ur URL settings
Well since i put that info in my first post i'm not sure what you are asking.!?
What should be in my settings.?

If you don't want to help don't bother posting.
Reply With Quote
  #7  
Old 09-10-2012, 04:23 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gamelobby View Post
So mine is the same as far as the "www".

The difference is at the end..
  • Yours - [R=permanent,L]
  • Mine - [R=301,L]



Well since i put that info in my first post i'm not sure what you are asking.!?
What should be in my settings.?

If you don't want to help don't bother posting.
manners cost nothing, I was helping and did not see that info in the first post
Reply With Quote
  #8  
Old 09-11-2012, 12:36 AM
StormBreaker's Avatar
StormBreaker StormBreaker is offline
 
Join Date: Sep 2008
Location: Egypt
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use this htaccess to redirect www to non www
PHP Code:
RewriteEngine On
RewriteCond 
%{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] 
Reply With Quote
  #9  
Old 10-01-2012, 05:55 AM
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Location: Long Beach, CA
Posts: 997
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StormBreaker View Post
Use this htaccess to redirect www to non www
PHP Code:
RewriteEngine On
RewriteCond 
%{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] 
Appreciate the info Storm, but that didn't seem to make any difference.

I added that to what was already there, then tried deleting what was already there, & a few other combinations..

Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^gamelobby\.com$
RewriteRule ^(.*)$ http://www.gamelobby.com/$1 [R=301,L] 


RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Any other ideas, or do you see that I did something wrong.?
Thanks in advance
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:57 PM.


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.03976 seconds
  • Memory Usage 2,240KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete