vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   www or not ? (https://vborg.vbsupport.ru/showthread.php?t=287664)

Gamelobby 09-09-2012 10:02 PM

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

ForceHSS 09-09-2012 10:05 PM

.htaccess file

Gamelobby 09-09-2012 10:31 PM

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" ?

b00k 09-10-2012 03:47 AM

....................

ForceHSS 09-10-2012 04:07 AM

Quote:

Originally Posted by Gamelobby (Post 2364124)
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

Gamelobby 09-10-2012 04:18 PM

Quote:

Originally Posted by TSR (Post 2364167)
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 (Post 2364168)
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. :cool:

ForceHSS 09-10-2012 04:23 PM

Quote:

Originally Posted by Gamelobby (Post 2364343)
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. :cool:

manners cost nothing, I was helping and did not see that info in the first post

StormBreaker 09-11-2012 12:36 AM

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] 


Gamelobby 10-01-2012 05:55 AM

Quote:

Originally Posted by StormBreaker (Post 2364483)
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


All times are GMT. The time now is 08:07 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.01097 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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