Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26
Like Tree2Likes

Help to solve conflit between Litespeed guests cache + VBSEO

This is a discussion on Help to solve conflit between Litespeed guests cache + VBSEO within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi! The story was begun from an article about Apache + Varnish + vBulletin Guest Cache at vBulletin.com. I asked ...

  1. #1
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times

    Help to solve conflit between Litespeed guests cache + VBSEO

    Hi!

    The story was begun from an article about Apache + Varnish + vBulletin Guest Cache at vBulletin.com. I asked for the same thing about Litespeed + vBulletin Guest Cache at Litespeedtech.com. And we have the good solution for that: vBulletin Guest Cache with LiteSpeed - LiteSpeed Support Forums

    But the issue here is there is a conflict between this solution with VBSEO. I think it comes from Rewrite rules. If I put Guest Cache's ReWriterutes before vbseo rules, VBSEO will not work, vice versa, Guest Cache will not work.

    ## select which pages to cache
    RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
    RewriteCond %{HTTP_COOKIE} !bbuserid=
    RewriteCond %{HTTP_COOKIE} !bbpassword=
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    RewriteCond %{QUERY_STRING} !product=vbnexus
    RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image) \.php$
    RewriteCond %{REQUEST_URI} !^/admincp
    RewriteRule /(.*\.php)?$ - [L,E=Cache-Control:max-age=120]

    ### VBSEO
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]

  2. #2
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times
    Sorry, I post in wrong forum.
    Could you please help me to VBSEO General Discussion forum?
    Thank you.

  3. #3
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    Hello,

    please try to change this line:
    RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image) \.php$
    to:
    RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image| vbseo)\.php$

  4. #4
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    Thanks Oleg,

    dihuta did this work for you ? without vbseo i tested litespeed cache + vB and nearly 721x times faster than apache Litespeed vBulletin index.php benchmarks - Part 1 - LiteSpeed Support Forums

  5. #5
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times
    Still not work.

    Quote Originally Posted by GeorgeL View Post
    Thanks Oleg,

    dihuta did this work for you ? without vbseo i tested litespeed cache + vB and nearly 721x times faster than apache Litespeed vBulletin index.php benchmarks - Part 1 - LiteSpeed Support Forums

  6. #6
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello Dinh,

    Please try this as well:

    Find:

    RewriteCond %{REQUEST_URI} !^/admincp
    RewriteRule /(.*\.php)?$ - [L,E=Cache-Control:max-age=120]

    Replace with:

    RewriteCond %{REQUEST_URI} !/(admincp|vbseo)/
    RewriteRule ^(.*\.php)?$ - [L,E=Cache-Control:max-age=120]
    Andrés Durán / Crawlability Inc.
    ĄvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ĄAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  7. #7
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    dihuta vbseo also sets it's own cookie i believe so you need to add

    RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes

    to

    RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
    RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
    RewriteCond %{HTTP_COOKIE} !bbuserid=
    RewriteCond %{HTTP_COOKIE} !bbpassword=
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    RewriteCond %{QUERY_STRING} !product=vbnexus
    RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image) \.php$
    RewriteCond %{REQUEST_URI} !^/admincp
    RewriteRule /(.*\.php)?$ - [L,E=Cache-Control:max-age=120]

    Also there's some added spaces between

    ) \.php$

    should be

    )\.php$

  8. #8
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times
    It's seem to work now but pages may not cached. I can't find "X-LiteSpeed-Cache" in headers.

    ## select which pages to cache
    RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
    RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
    RewriteCond %{HTTP_COOKIE} !bbuserid=
    RewriteCond %{HTTP_COOKIE} !bbpassword=
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    RewriteCond %{QUERY_STRING} !product=vbnexus
    RewriteCond %{REQUEST_URI} !^/(login|register|usercp|private|profile|cron|image| vbseo)\.php$
    RewriteCond %{REQUEST_URI} !/(admincp|vbseo)/
    RewriteRule ^(.*\.php)?$ - [L,E=Cache-Control:max-age=120]

  9. #9
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    what version of litespeed 4.0.19 is only one with x-litespeed-cache header added

  10. #10
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times
    Quote Originally Posted by GeorgeL View Post
    what version of litespeed 4.0.19 is only one with x-litespeed-cache header added
    Litespeed, 4.0.19

  11. #11
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    None of those pages actually exist. That's why it is impossible to cache those pages. You are using mod_rewrite and you are trying to cache pages that are rewritten with mod_rewrite which is something impossible.
    dihuta likes this.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  12. #12
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    Interesting, I tried litespeed cache on wordpress 3.0.4 with permalinks enabled via mod_rewrite and wordpress pages get cached fine. I haven't tried it on vBSEO yet though.
    dihuta likes this.

  13. #13
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times
    Quote Originally Posted by GeorgeL View Post
    Interesting, I tried litespeed cache on wordpress 3.0.4 with permalinks enabled via mod_rewrite and wordpress pages get cached fine. I haven't tried it on vBSEO yet though.
    So it should work with VBSEO.

  14. #14
    Junior Member
    Real Name
    GEORGE
    Join Date
    May 2008
    Location
    Brisbane, Australia
    Posts
    24
    Liked
    1 times
    Quote Originally Posted by dihuta View Post
    It's seem to work now but pages may not cached. I can't find "X-LiteSpeed-Cache" in headers.
    did you make sure you are loading pages without any cookies attached to the page you are checking ? (use firebug and firebug cookie admin to remove all cookies from page before viewing) you also need to load the page more than once before checking as first page load won't be from cache.

  15. #15
    Member
    Real Name
    Dinh Thanh
    Join Date
    Sep 2010
    Posts
    93
    Liked
    21 times
    Quote Originally Posted by GeorgeL View Post
    did you make sure you are loading pages without any cookies attached to the page you are checking ? (use firebug and firebug cookie admin to remove all cookies from page before viewing) you also need to load the page more than once before checking as first page load won't be from cache.
    Sure, also reset all Browser data and CPU Load also higher.
    I can see cached files.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Litespeed ve Vbseo
    By want3d in forum Türkçe
    Replies: 6
    Last Post: 06-08-2011, 07:52 AM
  2. Does vbseo works with litespeed ?
    By dhddl in forum Troubleshooting
    Replies: 1
    Last Post: 09-27-2009, 05:34 AM
  3. How i Solve This Url Problem With Vbseo And forumpages ?
    By Jason4Ever in forum General Discussion
    Replies: 8
    Last Post: 06-22-2009, 11:10 AM
  4. vbseo not working with litespeed for me
    By hornstar6969 in forum Troubleshooting
    Replies: 1
    Last Post: 02-03-2008, 03:03 PM
  5. VBSEO on Litespeed Webserver
    By reteep in forum Pre-Sales Questions
    Replies: 6
    Last Post: 08-30-2007, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •