[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:
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.