.htaccess ファイルに複数の RewriteRules を設定したいと考えています。
# Enable Rewriting
RewriteEngine on
# Rewrite profile urls
# Input: /user<userId>
# Output: /profile.php?id=<userId>
RewriteRule ^user(\d+)/?$ profile.php?id=$1 [L]
# Rewrite by default to redirect.php
RewriteRule .* redirect.php
すべてのリクエストはredirect.phpを指します
最初の RewriteRule に [L] フラグを設定すると、ルール セットの処理が停止するのではないかと考えました。