Rewrite [B] Flag?

#1
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]
 
#3
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:
#4
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:
Top