View Single Post
  #21  
Old 03-01-2011, 03:18 AM
Clockwork Clockwork is offline
Senior Member
 
Join Date: May 2009
Posts: 74
okay, it seems to work with this rewrite rule

Code:
#%LiteSpeed Cache rules
RewriteCond %{HTTP_COOKIE} !vbseo_loggedin
RewriteCond %{ORG_REQ_URI} !(login/wait|admincp|modcp|(login|register|usercp|private|profile|cron|image)\.php)
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} ^$
RewriteRule (.*) - [L,E=Cache-Control:max-age=120]
also don't forget to remove the last rule parameter from

Code:
#RewriteRule ^(.+)$ vbseo.php [L,QSA]
otherwise it will not work

However, this needs more testing, I'll add this on a big board this week.

p.s. I've never seen a login/wait part in a vbseo url, is this correct?

p.p.s. if you use lsws 4.0.20 don't forget to update your product according eva's blog. You also need to activate the "Send X-Accel-Expires header for logged in users" plugin because it's disabled by default. With this configuration you can also disable the "SET COOKIE FOR LOGGED IN USERS" plugin because it isn't required anymore.

Last edited by Clockwork; 03-01-2011 at 05:26 AM..
Reply With Quote