The easiest solution to this is to order the rules accordingly: specific rules before general rules.
Since the first rule (without the $
at the end) includes the second rule, put the second rule before the first one:
RewriteRule ^/events-list /pagebase.php?pbid=3663 [QSA,L,I]
RewriteRule ^/events /pagebase.php?pbid=3627 [QSA,L,I]
Now any url starting with /events-list
will be rewritten to pbid=3663
.
However, in order to prevent urls like /events-anything
from matching, it's better to include the matching of the optional query string in the rule:
RewriteRule ^/events-list(\?.*)?$ /pagebase.php?pbid=3663 [QSA,L,I]
RewriteRule ^/events(\?.*)?$ /pagebase.php?pbid=3627 [QSA,L,I]