View Single Post
  #1  
Old 09-29-2011, 03:11 PM
dragos dragos is offline
New Member
 
Join Date: Sep 2011
Posts: 2
Cool [Solved] mod_rewrite too greedy?

I have this rule into LSWS:

RewriteRule /([^/.]+)-article/?$ /index.php?action=article&author=$1 [L]
RewriteRule /([^/.]+)/([^/.]+)-article/?$ /index.php?action=article&author=$1&article=$2 [L]

If published in this order, will trigger 1st rule instead of 2nd rule for:
/doyle-conan/sherlock-article/

If I reverse the order, all works fine. Unfortunately that's not an acceptable solution.

This does work without a problem on apache (in this natural order I wrote here). Any help will be greatly appreciated.
Reply With Quote