##
## ACCESS RULES FOR API
RewriteEngine On
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# It would be best if we didn't use a query param for the rewrite and instead used it as a path segment,
# however that will break a lot of existing openemr installations so we will use a query param for now and
# perhaps issue a deprecation warning in the future.
RewriteRule (.*) authorize.php?_REWRITE_COMMAND=$1 [QSA,L]
