I am dealing with an API that is accessing an URL on my website and adding "/?parameter=value" to the url. I want my htaccess to handle this request and only keep the parameter's value. I want to keep it simple.
RewriteRule ^my-url/\?parameter=(.*)$ controller.php?parameter=$1
RewriteRule ^my-url/.parameter=(.*)$ controller.php?parameter=$1
Both of the above does not work. There seem to be an issue handling the question mark.