Rewrite [B] Flag?

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

  1. JasonWSInc

    JasonWSInc New Member

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

    See Apache documentation here please:
    http://httpd.apache.org/docs/current/rewrite/flags.html#flag_b

    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?

    Code:
    RewriteCond %{HTTP_HOST} example\.com$ [NC]
    RewriteCond %{QUERY_STRING} (.*) [NC]
    RewriteRule (.*) http://example.com/?array[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 New 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.

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

    JasonWSInc New 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 New Member

    re: Mod Rewrite flag.

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

    webizen New Member

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

Share This Page