LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   Rewrite [B] Flag? (http://www.litespeedtech.com/support/forum/showthread.php?t=5654)

JasonWSInc 01-23-2012 02:49 AM

Rewrite [B] Flag?
 
Hi there. Does LiteSpeed not support the [B] flag for mod_rewrite?

See Apache documentation here please:
http://httpd.apache.org/docs/current...gs.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]


NiteWave 01-23-2012 03:56 AM

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

JasonWSInc 01-23-2012 09:08 AM

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

JasonWSInc 01-23-2012 12:57 PM

re: Mod Rewrite [B] flag.
 
I've just run several more tests only to discover that LiteSpeed is not supporting the [B] flag in any context. I tried at the VirtualHost level, and also in the .htaccess file. The [B] flag supported by Apache is not functional at all in LiteSpeed.

JasonWSInc 01-23-2012 01:01 PM

re: Mod Rewrite [B] flag.
 
I'm running Litespeed Web Server Enterprise v4.1.10 with FireHost on Ubuntu 64-bit.

webizen 01-26-2012 11:43 AM

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


All times are GMT -7. The time now is 01:59 PM.