Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18

I think I found a fix for litespeed+vbseo cocktail?

This is a discussion on I think I found a fix for litespeed+vbseo cocktail? within the General Discussion forums, part of the vBSEO SEO Plugin category; I've only tested it for several hours but so far it's been running wonderfully. RewriteCond %{HTTP_COOKIE} page_contain_cachetoken=yes 
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32} ...

  1. #1
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times

    I think I found a fix for litespeed+vbseo cocktail?

    I've only tested it for several hours but so far it's been running wonderfully.

    RewriteCond %{HTTP_COOKIE} page_contain_cachetoken=yes
    
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    RewriteCond %{REQUEST_URI} !/(login|register|image)\.php$

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

    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{HTTP_COOKIE} !page_contain_cachetoken=yes
    RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    RewriteCond %{REQUEST_URI} !/(login|register|image)\.php$

    RewriteRule /(.*\.php)?$ – [E=Cache-Controlrivate]

    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)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]

    thoughts?

  2. #2
    Junior Member
    Real Name
    prandah
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    18
    Liked
    0 times
    hello,
    there is for litespeed pro
    or can use with litespeed standart edition ?

  3. #3
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    hey prandah,

    this is litespeed pro; i don't believe the free edition has cache?

  4. #4
    Junior Member
    Real Name
    prandah
    Join Date
    Dec 2011
    Location
    Indonesia
    Posts
    18
    Liked
    0 times
    hello
    yes litespeed basic didnt have cache
    i'm use xcache

  5. #5
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    Quote Originally Posted by prandah View Post
    hello
    yes litespeed basic didnt have cache
    i'm use xcache
    well you can use xcache + litespeed cache for extra performance, but as you said, the free version does not have this option.

  6. #6
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    Can anyone confirm if my rewrite code above is correct?

    I realized I'm not getting the "LiteSpeed" header on any of the pages.

  7. #7
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    bump

  8. #8
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    double bump

    ...anyone?...

  9. #9
    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
    Hello ,

    We are not litespeed experts and we don't focus on any specific server type. Bumping this thread will not help you. Any advanced configuration is directly on you.
    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

  10. #10
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    Oh ok; I was merely curious to see if anyone has been to get the two to work, and if so, whether or not this was the correct way to do it.

    Thanks anyway.

  11. #11
    Member
    Join Date
    Dec 2005
    Posts
    33
    Liked
    0 times
    I've been playing with getting cache working for those not logged in (also 90%+ of our page views), but haven't ventured into the private-cache yet.

  12. #12
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    Quote Originally Posted by TechGuy View Post
    I've been playing with getting cache working for those not logged in (also 90%+ of our page views), but haven't ventured into the private-cache yet.
    Did you have any luck?

  13. #13
    Member
    Join Date
    Dec 2005
    Posts
    33
    Liked
    0 times
    Yup, I added this AFTER the vbseo stuff in .htaccess:

    Code:
    RewriteEngine On
    #rules for litespeed cache:
    RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
    RewriteCond %{HTTP_COOKIE} !bb_userid=
    RewriteCond %{HTTP_COOKIE} !bb_password=
    RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{REQUEST_URI} !^(login|register|usercp|private|profile|cron|image|search)\.php$
    RewriteCond %{REQUEST_URI} !^admincp
    RewriteRule ^(.*)?$ - [L,E=Cache-Control:max-age=120]
    


    If anyone has any tips, feel free to share!

  14. #14
    MPI
    MPI is offline
    Junior Member
    Real Name
    Michael Torres
    Join Date
    Nov 2011
    Posts
    13
    Liked
    0 times
    Thanks TechGuy!!! works like a charm!

    only tips I can share in relevance to your code are:

    1. if you have *custom* cookie names prefixes configured you have to change "bb_" to "yourcustomprefix_" on lines 4 and 5.
    2. change "RewriteRule ^(.+)$ vbseo.php [L,QSA]" to "RewriteRule ^(.+)$ vbseo.php [QSA]" (remove "L,")

    Cheers!

  15. #15
    Member
    Join Date
    Dec 2005
    Posts
    33
    Liked
    0 times
    Glad to help.

    Any idea what the max-age=120 represents? I assume it's how long the page will remain in LS's cache, perhaps in seconds? If so, I'm thinking I may want to bump that up a bit as I don't care if guests see the most recent reply. I'd rather have them get cached pages and lower the load.

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. 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
  •