Conditions in htaccess only litespeed will follow

Discussion in 'Apache Migration/Compatibility' started by qnFHUU, Jul 9, 2012.

  1. qnFHUU

    qnFHUU New Member

    I create software that is used by thousands of Web sites. In the past I have been telling to customers to use a better httpd daemon. I am finally willing to support litespeed. In order to do this, I need a way to create conditions in htaccess that litespeed will process but apache will not. This is necessary because of the buggy, poor, incomplete, bastardization of htaccess support that litespeed has.

    So, does anyone know of a way I can do this?

    For example:

    <IfModule mod_litespeed.c>
    # litespeed stuff here
    </IfModule>

    The above does not work of course, so what method can be used?
  2. qnFHUU

    qnFHUU New Member

    Default Conditions in htaccess only litespeed will follow

    I create software that is used by thousands of Web sites. In the past I have been telling to customers to use a better httpd daemon. I am finally willing to support litespeed. In order to do this, I need a way to create conditions in htaccess that litespeed will process but apache will not. This is necessary because of the buggy, poor, incomplete, bastardization of htaccess support that litespeed has.

    So, does anyone know of a way I can do this?

    For example:

    <IfModule mod_litespeed.c>
    # litespeed stuff here
    </IfModule>

    The above does not work of course, so what method can be used?


    btw, the other thread (http://www.litespeedtech.com/support/forum/showthread.php?t=6072) can be deleted as it is in the wrong forum.
  3. NiteWave

    NiteWave Administrator

    hi, I did test,

    for included rules,
    <IfModule mod_litespeed.c>
    # litespeed stuff here
    </IfModule>

    working in litespeed and ignored by apache, so yours just ok.

    also tested, following OK too:
    <IfModule litespeed>
    # litespeed stuff here
    </IfModule>

Share This Page