Similar to the idea of a 404 handler, with a very simple RewriteRule, you can easily move the URL rewrite control to PHP, which might be easier for you:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . rewrite.php [L]
rewrite.php URL- RegEx. URL- ( $_SERVER['REQUEST_URI']) URL- . $_GET .
:
$rules = array(
array(
'articles/view/([0-9]+)',
'articles.php?id=$1'
),
array(
'articles/delete/([0-9]+)',
'articles.php?id=$1&action=delete'
),
);