LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > vB seo + litespeed cache

Reply
 
Thread Tools Display Modes
  #21  
Old 11-29-2011, 01:56 PM
jdeg jdeg is offline
New Member
 
Join Date: May 2011
Posts: 9
I did a quick test on another one of my sites with the default vbseo rules.

Configuring things with the setup in post 1 of this thread returns a 404 error on every page. (L removed from last vbseo rule and included in last cache rule)

Removing the L in the last cache rule and replacing in the last vbseo rule as in post 9 does not result in errors, but it does not appear anything is cached. Total cache hits and cache hits/sec remain at 0 when viewing real-time statistics.
Reply With Quote
  #22  
Old 11-29-2011, 05:47 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,223
you can try cache 1 page first -- for example phpinfo() page, to get it working.
you can do it in rewriterule.
Reply With Quote
  #23  
Old 11-29-2011, 10:51 PM
jdeg jdeg is offline
New Member
 
Join Date: May 2011
Posts: 9
Quote:
Originally Posted by NiteWave View Post
you can try cache 1 page first -- for example phpinfo() page, to get it working.
you can do it in rewriterule.
I tried that - still nothing.

This is what my rules look like:

Code:
RewriteEngine On

Header unset ETag
FileETag None

ExpiresActive on

    ExpiresByType image/jpg "access plus 1 months"
    ExpiresByType image/gif "access plus 1 months"
    ExpiresByType image/jpeg "access plus 1 months"
    ExpiresByType image/png "access plus 1 months"

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

#rules for litespeed cache:
RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
#RewriteCond %{ORG_REQ_URI} ^/(index\.php|)$
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} ^$
RewriteRule (.*) - [E=Cache-Control:max-age=120]

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|api\.php)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
Reply With Quote
  #24  
Old 11-30-2011, 12:35 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,223
I can take a look at your server if you give the access
Reply With Quote
  #25  
Old 12-11-2011, 07:37 AM
Home Alone Home Alone is offline
New Member
 
Join Date: Dec 2011
Posts: 8
Quote:
Originally Posted by freeballt View Post
Many of my users are complaining about being logged out, and when I look at it in firebug it doesn't seem to have no-cache in response.

I also had to disable the plugin because if a user is IP banned, it will show an IP banned message to other users.
I'm also experiencing these two problems. Did you ever resolve it?
Reply With Quote
  #26  
Old 12-11-2011, 08:51 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,223
I think the "issue" is because guest cache not set up correctly somewhere.

We've enabled vb seo cache for quite a few users and not experienced this issue so far.
Reply With Quote
  #27  
Old 12-11-2011, 10:36 AM
Home Alone Home Alone is offline
New Member
 
Join Date: Dec 2011
Posts: 8
Quote:
Originally Posted by NiteWave View Post
I think the "issue" is because guest cache not set up correctly somewhere.

We've enabled vb seo cache for quite a few users and not experienced this issue so far.
This is my .htaccess file:

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

#rules for litespeed cache:
RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
#RewriteCond %{ORG_REQ_URI} ^/(index\.php|)$
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} ^$
RewriteRule (.*) - [E=Cache-Control:max-age=60]


RewriteRule ^view_(.*).htm$ view.php?pg=$1

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

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|show wiki)/
RewriteRule ^(.+)$ vbseo.php [QSA]

RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^vb/?$ "http\:\/\/www\.domain\.com" [R=301,L]

php_flag display_errors off

RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://games.espn.go.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://games.espn.go.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F]

This is my cache policy:

Enable Cache No
Cache Expire Time (seconds) Not Set
Cache Request with Query String Yes
Cache Request with Cookie Yes
Cache Response with Cookie Yes
Ignore Request Cache-Control Yes
Ignore Response Cache-Control Yes
Enable Private Cache No
Private Cache Expire Time (seconds)120
Reply With Quote
  #28  
Old 12-11-2011, 07:32 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,223
the rules looks fine.
Code:
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
since bb_userid and bb_password is customizable by vB, to be sure you're using the same cookie name - if you're using vb_userid and vb_passwords etc, please change above rules as well.
Reply With Quote
  #29  
Old 12-16-2011, 12:01 PM
Home Alone Home Alone is offline
New Member
 
Join Date: Dec 2011
Posts: 8
Quote:
Originally Posted by NiteWave View Post
the rules looks fine.
Code:
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
since bb_userid and bb_password is customizable by vB, to be sure you're using the same cookie name - if you're using vb_userid and vb_passwords etc, please change above rules as well.
I'm using the default values.
Reply With Quote
  #30  
Old 12-27-2011, 02:02 PM
TechGuy TechGuy is offline
New Member
 
Join Date: Aug 2009
Location: Waynesboro, PA
Posts: 6
What settings did you guys use for Cache Policy, etc? I've installed the plugin, rewrite rules, etc... but still no caching.
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 -7. The time now is 04:27 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.