|
|

11-29-2011, 01:56 PM
|
|
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.
|

11-29-2011, 05:47 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,297
|
|
|
you can try cache 1 page first -- for example phpinfo() page, to get it working.
you can do it in rewriterule.
|

11-29-2011, 10:51 PM
|
|
New Member
|
|
Join Date: May 2011
Posts: 9
|
|
Quote:
Originally Posted by NiteWave
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]
|

11-30-2011, 12:35 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,297
|
|
|
I can take a look at your server if you give the access
|

12-11-2011, 07:37 AM
|
|
New Member
|
|
Join Date: Dec 2011
Posts: 8
|
|
Quote:
Originally Posted by freeballt
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?
|

12-11-2011, 08:51 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,297
|
|
|
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.
|

12-11-2011, 10:36 AM
|
|
New Member
|
|
Join Date: Dec 2011
Posts: 8
|
|
Quote:
Originally Posted by NiteWave
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
|

12-11-2011, 07:32 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,297
|
|
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.
|

12-16-2011, 12:01 PM
|
|
New Member
|
|
Join Date: Dec 2011
Posts: 8
|
|
Quote:
Originally Posted by NiteWave
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.
|

12-27-2011, 02:02 PM
|
|
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. 
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 05:24 AM.
|
|