LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Rewrite [B] Flag?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2012, 02:49 AM
JasonWSInc JasonWSInc is offline
Member
 
Join Date: Jan 2012
Posts: 10
Default 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]
Reply With Quote
  #2  
Old 01-23-2012, 03:56 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
can you test it under apache as well ?
and see if any difference.
Reply With Quote
  #3  
Old 01-23-2012, 09:08 AM
JasonWSInc JasonWSInc is offline
Member
 
Join Date: Jan 2012
Posts: 10
Default 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 by JasonWSInc; 01-23-2012 at 09:12 AM..
Reply With Quote
  #4  
Old 01-23-2012, 12:57 PM
JasonWSInc JasonWSInc is offline
Member
 
Join Date: Jan 2012
Posts: 10
Default 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.

Last edited by JasonWSInc; 01-23-2012 at 01:14 PM..
Reply With Quote
  #5  
Old 01-23-2012, 01:01 PM
JasonWSInc JasonWSInc is offline
Member
 
Join Date: Jan 2012
Posts: 10
Default re: Mod Rewrite [B] flag.

I'm running Litespeed Web Server Enterprise v4.1.10 with FireHost on Ubuntu 64-bit.
Reply With Quote
  #6  
Old 01-26-2012, 11:43 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Will let you know once a workaround/fix becomes available.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:23 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.