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
  #11  
Old 07-15-2011, 10:32 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
  #12  
Old 07-15-2011, 10:56 AM
ihstiv ihstiv is offline
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?
Reply With Quote
  #13  
Old 07-15-2011, 11:16 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
  #14  
Old 07-15-2011, 01:28 PM
ihstiv ihstiv is offline
New Member
 
Join Date: Jul 2011
Posts: 6
Quote:
Originally Posted by NiteWave View Post
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
Reply With Quote
  #15  
Old 07-15-2011, 01:39 PM
freeballt freeballt is offline
Member
 
Join Date: Apr 2011
Posts: 38
Quote:
Originally Posted by ihstiv View Post
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..
Reply With Quote
  #16  
Old 07-15-2011, 07:27 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
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.
Reply With Quote
  #17  
Old 09-12-2011, 05:58 AM
jdeg jdeg is offline
New Member
 
Join Date: May 2011
Posts: 9
Quote:
Originally Posted by ihstiv View Post
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?
Reply With Quote
  #18  
Old 09-12-2011, 05:54 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
moving the rules to top is recommended. if not working, you can post your rules here to see if any change to improve them.
Reply With Quote
  #19  
Old 09-13-2011, 08:50 AM
jdeg jdeg is offline
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]
Reply With Quote
  #20  
Old 09-21-2011, 08:01 AM
jdeg jdeg is offline
New Member
 
Join Date: May 2011
Posts: 9
I wonder if this has something to do with gzip being enabled?
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 05:55 AM.



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