I am trying to come up with a rewrite rule, but I am having problems.
What I need - any url that starts with /services/XXX
to be redirected to /services/api.php?service=XXX
I also want to ignore any files or folders that might also match.
What I have so far:
RewriteRule ^services/([a-z]+)$ /services/api.php?service=$1 [NC, L]
But this does not work at all, it shows a 404 page saying that file is missing when I test it. Any help is much appreciated.