Options -Indexes

RewriteEngine On
RewriteBase /abc/food_delivery/public/

# Forward the Authorization header to PHP (Apache/mod_php strips it by default),
# so bearer tokens reach the API. Read server-side via REDIRECT_HTTP_AUTHORIZATION.
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

# Block direct access to uploads of PHP files
RewriteRule ^uploads/.*\.(php|phtml|php3|php4|php5|phar)$ - [F,L]

# Send everything through index.php (skip real files & directories)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
