vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Help needed-login problems. (https://vborg.vbsupport.ru/showthread.php?t=305823)

Tanard 12-13-2013 12:46 PM

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 :)

Lynne 12-13-2013 05:31 PM

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]


Tanard 12-13-2013 06:38 PM

Quote:

Originally Posted by Lynne (Post 2468062)
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. :)

Lynne 12-14-2013 12:12 AM

Quote:

Originally Posted by Tanard (Post 2468086)
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. :)

Tanard 12-14-2013 05:37 PM

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.

Lynne 12-14-2013 05:59 PM

LOL We all make mistakes. I'm glad you figured it out. :)


All times are GMT. The time now is 06:45 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.01003 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (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