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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > rewrite redirect not working under 3.3.24

Reply
 
Thread Tools Display Modes
  #11  
Old 02-13-2009, 09:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can try the 4.0rc1 release.
Reply With Quote
  #12  
Old 02-24-2009, 01:12 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by aww View Post
I have found the bug, and it is real.

All it takes is for a sub-directory to have the directive:

RewriteEngine On

in it's own sub .htaccess, and the parent redirect will never happen.
No other rule is present in the subdirectory.
If I remove that RewriteEngine On - the redirect will work properly, even with other rules.

Apparently "RewriteEngine On" causes the rewrite engine in litespeed to reset.
This is not the behaviour in apache, which will ignore it if it's already on.
After study the behavior of Apache rewrite implementation, it is the correct behavior.
If you put only "RewriteEngine On" in a .htaccess without any rewrite rules or "RewriteOptions inherit", Apache will not look for other rewrite rules in parent directories.
Tested it on Apache 2.2 .
So, we will change our rewrite engine implementation to match Apache's.
Reply With Quote
  #13  
Old 02-24-2009, 02:06 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Oh!
Is that the problem?
Does Litespeed not currently support "RewriteOptions inherit" ?

For some reason I thought it was working on my apache test server without "RewriteOptions inherit" but just double checked now and you are correct, without "RewriteOptions inherit" the www. rewrite rule doesn't recurse.

But it does work with that on, on Apache. Not on litespeed however.

Last edited by aww; 02-24-2009 at 02:09 PM..
Reply With Quote
  #14  
Old 02-24-2009, 02:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
"RewriteOptions inherit" will be added.
Reply With Quote
  #15  
Old 02-24-2009, 02:30 PM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Ah, thank you very much.
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 10:08 PM.



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