|
|

07-15-2011, 10:32 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
|
you are right.
Not only that rule, but also all other rewrite rules, leave them "as is", without change. for complex rewrite rules, it's very tricky and risky to change anything.
|

07-15-2011, 10:56 AM
|
|
New Member
|
|
Join Date: Jul 2011
Posts: 6
|
|
|
Ok - thanks. I'll make the necessary changes.
two more questions:
1. can you help me understand this line:
#RewriteCond %{ORG_REQ_URI} ^/(index\.php|)$
..and why it is commented out?
2. is there a way to use the 'private cache' feature in lsws for vbulletin/vbseo logged in members?
|

07-15-2011, 11:16 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
|
1.please remove it:
#RewriteCond %{ORG_REQ_URI} ^/(index\.php|)$
it's for test purpose: enable cache for homepage only.
if test pass, comment it out.
2.we've no chance to test "private cache" with vB/vbseo yet.
|

07-15-2011, 01:28 PM
|
|
New Member
|
|
Join Date: Jul 2011
Posts: 6
|
|
Quote:
Originally Posted by NiteWave
usually there exists such a rewriterule in .htaccess of document root:
Code:
RewriteCond %{HTTP_HOST} !^www\.mysite\.org$
RewriteRule ^(.*)$ http://www.mysite.org/$1 [R=301,L]
just insert the new cache related rules after above rules:
Code:
#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]
[/CODE]
|
I've found that moving the lsws rules to the top of the htaccess file tends to cause problems, including 404 errors. The only thing that solves the errors is to move the lsws rules below all existing VBSEO RewriteCond and RewriteRule statements.
RedirectMatch and other statements can go below it w/o problem.
Knowing this, does it still make sense to leave this line as-is:
RewriteRule ^(.+)$ vbseo.php [L,QSA]
..or would it be better to change it to this?
RewriteRule ^(.+)$ vbseo.php [QSA]
Cheers
|

07-15-2011, 01:39 PM
|
|
Member
|
|
Join Date: Apr 2011
Posts: 38
|
|
Quote:
Originally Posted by ihstiv
Knowing this, does it still make sense to leave this line as-is:
RewriteRule ^(.+)$ vbseo.php [L,QSA]
..or would it be better to change it to this?
RewriteRule ^(.+)$ vbseo.php [QSA]
Cheers
|
I'm wondering the same thing.
I also tested this on 3.8.4 and it doesn't seem to execute this: "header('X-LiteSpeed-Cache-Control: no-cache');"
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.
Last edited by freeballt; 07-15-2011 at 02:06 PM..
|

07-15-2011, 07:27 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
Quote:
|
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.
|
this header "X-LiteSpeed-Cache-Control: no-cache" is used between litespeed processs and lsphp5 process, will not show in response header, so not seen by firebug
Quote:
|
I've found that moving the lsws rules to the top of the htaccess file tends to cause problems, including 404 errors. The only thing that solves the errors is to move the lsws rules below all existing VBSEO RewriteCond and RewriteRule statements.
|
can you test homepage only(as discussed before), or another page, the rule is like:
RewriteCond %{ORG_REQ_URI} ^/test-this-page/)$
and clear cache folder first. only after succeeded for 1 page, then move on.
|

09-12-2011, 05:58 AM
|
|
New Member
|
|
Join Date: May 2011
Posts: 9
|
|
Quote:
Originally Posted by ihstiv
I've found that moving the lsws rules to the top of the htaccess file tends to cause problems, including 404 errors. The only thing that solves the errors is to move the lsws rules below all existing VBSEO RewriteCond and RewriteRule statements.
|
I'm having the same issue - if I move the rules to the bottom nothing gets cached though.
Has anyone figured this out?
|

09-12-2011, 05:54 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
|
moving the rules to top is recommended. if not working, you can post your rules here to see if any change to improve them.
|

09-13-2011, 08:50 AM
|
|
New Member
|
|
Join Date: May 2011
Posts: 9
|
|
|
I was using your rewrite rules from the first post right after the
RewriteCond %{HTTP_HOST} !^site\.net
RewriteRule (.*) http://site.net/$1 [L,R=301]
|

09-21-2011, 08:01 AM
|
|
New Member
|
|
Join Date: May 2011
Posts: 9
|
|
|
I wonder if this has something to do with gzip being enabled?
|
| 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 09:51 PM.
|
|