This is a .htaccess file I found for my REST API that rewrites URLs in this manner: rest.php/a/b/c/... -> rest.php?url=a/b/c/...
RewriteEngine On
RewriteRule ^(.*)$ rest.php?url=$1 [L,NC,NE]
I've been trying to modify this code to allow for additional GET parameters as in the current form it just ignores them and PHP only sees the 'url'. How could this be done?
I want something like this: rest.php/a/b/c/...?filter=word -> rest.php?url=a/b/c/...&filter=word