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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > mod_rewrite: LiteSpeed and QSA

Reply
 
Thread Tools Display Modes
  #1  
Old 08-22-2009, 08:19 AM
frostschutz frostschutz is offline
New Member
 
Join Date: Aug 2009
Posts: 1
Default mod_rewrite: LiteSpeed and QSA

Hello, everyone. I'm new to these forums, if this is the wrong place for this posting, please forgive me. I ran into an issue with LiteSpeed, which is probably a bug, I'm hoping you can help me out.

I have this rewrite rule:

Code:
RewriteRule user-([0-9]+).html member.php?action=profile&uid=$1 [L,QSA]
It rewrites user-123.html to member.php?action=profile&uid=123. I'm using the same rule in Apache, and (using mod_rewrite equivalents) also in Nginx and lighttpd. It's a simple rewrite so it works fine, and should also work for LiteSpeed. Or so I thought.

LiteSpeed behaves different than other web servers in a conflict situation:

user-123.html?action=email

action is specified twice, once in the URL the user typed in, and once in the rewrite rule. In Apache, Nginx, lighttpd, the PHP $_GET variable will contain 'action' => 'email' and the PHP process will output an email form.

In LiteSpeed it's 'action' => 'profile', because whatever is specified in the rewrite rule seems to win over the actual query string in the URL that the user sees in his browser. Instead of the email form the PHP process outputs the profile page.

Is this intended behaviour of LiteSpeed?
Reply With Quote
  #2  
Old 08-22-2009, 04:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
It is the order of appended query string and the one from request URL.
Fixed in updated 4.0.10 binary.

Thanks for the bug report.
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 05:57 AM.



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