vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Need some help on htaccess and admincp (https://vborg.vbsupport.ru/showthread.php?t=308806)

pityocamptes 02-23-2014 11:26 PM

Need some help on htaccess and admincp
 
Well I added this to increase load speed, which it did for my site. However, while trying to get into my admincp it accepts the pw but brings me right back to the login box... big loop, never lets me in. Did I do something wrong on the htaccess? Thanks.

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/javascript A604800
ExpiresByType application/x-javascript A604800
ExpiresByType text/javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A604800
ExpiresByType image/x-icon A604800
ExpiresByType image/icon A604800
ExpiresByType image/jpg A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/png A604800
ExpiresByType text/html A604800
</IfModule>

# BEGIN Caching
<ifModule mod_headers.c>
<filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
<filesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<filesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</filesMatch>
<filesMatch "\\.(xml|txt)$">
Header set Cache-Control "max-age=216000, public, must-revalidate"
</filesMatch>
<filesMatch "\\.(html|htm|php)$">
Header set Cache-Control "max-age=1, private, must-revalidate"
</filesMatch>
</ifModule>
# END Caching

ozzy47 02-23-2014 11:31 PM

So if you remove that from the htaccess you are able to get into the ACP with no issues?

Where did you get this code to add there?

pityocamptes 02-23-2014 11:41 PM

Quote:

Originally Posted by ozzy47 (Post 2483306)
So if you remove that from the htaccess you are able to get into the ACP with no issues?

Where did you get this code to add there?

Looked around the internet, why do you have something better, or is it not a good option?

Didn't seem to make a difference... hells bells... maybe it takes a while for htaccess to update on the server?

ozzy47 02-23-2014 11:44 PM

No, if you removed the code from the htaccess, and still can not access the ACP, you got something else going on.

Open your includes/config.php file and below<?php add this line:

PHP Code:

 define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);
/*=================================================  =====================*\
|| ##################################################  ################## ||
|| # vBulletin 4.2.2


Then see if you can access the ACP

ozzy47 02-23-2014 11:47 PM

Absolutely you can increase your page speed via htaccess.

Lynne 02-23-2014 11:57 PM

I'm no expert in .htaccess, but I don't think that is the problem as you are re-validating for php files. I would do as Ozzy47 suggested and disable your plugins.

pityocamptes 02-23-2014 11:58 PM

Odd, works fine in IE but not FF... will try the hooks thing...

I see you can DEFLATE via htaccess, what exactly does that do? Thanks.

ozzy47 02-23-2014 11:59 PM

One thing at a time, lets get you into the ACP first.

pityocamptes 02-23-2014 11:59 PM

Nope, the hooks thing did not work...

I can get in fine in IE, just not FF and I cleared all cookies, cache in FF..

ozzy47 02-24-2014 12:00 AM

Ok since it only seems to be FF, have you cleared your cookies and cache in the browser?


All times are GMT. The time now is 09:12 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.01126 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete