Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-13-2013, 12:46 PM
Tanard Tanard is offline
 
Join Date: Dec 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help needed-login problems.

Hi all,

I have a problem that I can't get my head around for the past few days now since we patched to 4.2.2.

Our forum is http://www.theevertonforum.co.uk but we also have http://www.theevertonforum.com << when users goto this site they put in their username and password and are kicked back out. The only way they are able to login is via the .co.uk site.

The cookie domain is set at .theevertonforum.co.uk

Also http://www.theevertonforum.com as been added to the redirect whitelist.

here is a copy of what the htacess file looks like that's in the root.

Quote:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.theevertonforum\.com
RewriteRule (.*) http://www.theevertonforum.co.uk/$1 [L,R=301]


RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
Any help would really be appreciated.

Thank you
Reply With Quote
  #2  
Old 12-13-2013, 05:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your rewrite rule isn't working. The ones on my site look like this:


Code:
RewriteCond %{HTTP_HOST} ^www.otherdomain\.org [NC]
RewriteRule (.*) http://www.maindomain.org/$1 [L,R=301]
So, perhaps try:

Code:
RewriteCond %{HTTP_HOST} ^www.theevertonforum\.com [NC]
RewriteRule (.*) http://www.theevertonforum.co.uk/$1 [L,R=301]
Reply With Quote
  #3  
Old 12-13-2013, 06:38 PM
Tanard Tanard is offline
 
Join Date: Dec 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
your rewrite rule isn't working. The ones on my site look like this:


Code:
RewriteCond %{HTTP_HOST} ^www.otherdomain\.org [NC]
RewriteRule (.*) http://www.maindomain.org/$1 [L,R=301]
So, perhaps try:

Code:
RewriteCond %{HTTP_HOST} ^www.theevertonforum\.com [NC]
RewriteRule (.*) http://www.theevertonforum.co.uk/$1 [L,R=301]
Much appreciated Lynne. Thank you. Will give it a try now.

--------------- Added [DATE]1386964331[/DATE] at [TIME]1386964331[/TIME] ---------------

Just tried above and still the same.

--------------- Added [DATE]1386964703[/DATE] at [TIME]1386964703[/TIME] ---------------

Ok I found out what it was lol. How weird though.

--------------- Added [DATE]1386965626[/DATE] at [TIME]1386965626[/TIME] ---------------

Thanks alot though Lynne for you're time.
Reply With Quote
  #4  
Old 12-14-2013, 12:12 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tanard View Post
Ok I found out what it was lol. How weird though.
Do you mind sharing what the problem was? Many people do a search before posting a question and it helps if there are answers in threads they may come across when searching on their own problem.

I'm glad you got it figured out though.
Reply With Quote
Благодарность от:
tbworld
  #5  
Old 12-14-2013, 05:37 PM
Tanard Tanard is offline
 
Join Date: Dec 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure Lynne.

For some reason I had two htaccess files in my root folder, one which was .htaccess and the other was htaccess. I was editing the wrong one all the time. How I missed it for so long, I don't know lol.
Reply With Quote
  #6  
Old 12-14-2013, 05:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL We all make mistakes. I'm glad you figured it out.
Reply With Quote
Reply


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 09:47 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.06505 seconds
  • Memory Usage 2,220KB
  • 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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete