Rewrite [B] Flag?

Discussion in 'Install/Configuration' started by JasonWSInc, Jan 23, 2012.

  1. JasonWSInc

    JasonWSInc Member

    Hi there. Does LiteSpeed not support the flag for mod_rewrite?

    See Apache documentation here please:

    It would appear that LiteSpeed does not yet support this, because I get errors in my log when I attempt to use it. Is there a workaround?

    RewriteCond %{HTTP_HOST} example\.com$ [NC]
    RewriteCond %{QUERY_STRING} (.*) [NC]
    RewriteRule (.*)[u]=$1&array[q]=%1 [NC,B,R=301,L]
  2. NiteWave

    NiteWave Administrator

    can you test it under apache as well ?
    and see if any difference.
  3. JasonWSInc

    JasonWSInc Member

    re: Request Filters

    Yes, this is being migrated over from Apache. So this DOES work in Apache.
    But, when I use it in LiteSpeed I'm getting errors about an invalid rewrite flag.

    [[HTAccess]] rewrite: Unknown rewrite rule flag while parsing
    Last edited: Jan 23, 2012
  4. JasonWSInc

    JasonWSInc Member

    re: Mod Rewrite flag.

    I've just run several more tests only to discover that LiteSpeed is not supporting the flag in any context. I tried at the VirtualHost level, and also in the .htaccess file. The flag supported by Apache is not functional at all in LiteSpeed.
    Last edited: Jan 23, 2012
  5. JasonWSInc

    JasonWSInc Member

    re: Mod Rewrite flag.

    I'm running Litespeed Web Server Enterprise v4.1.10 with FireHost on Ubuntu 64-bit.
  6. webizen

    webizen Well-Known Member

    Will let you know once a workaround/fix becomes available.

Share This Page