WordPress HTACCESS 301 Redirect Querystring index.asp

Solution:

Redirect or RewriteRule doesn’t match query string. You need RewriteCond for that also you must keep that rule before other WP rules.

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} (?:^|&)id=herhaalrecept_aanvragen-5(&|$)  [NC]
RewriteRule ^index\.asp$ https://www.example.nl/aanmelden-nieuwe-patienten/? [L,R=301,NC]

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php? [L]