# Keep it simple (and compatible)
Options -MultiViews
RewriteEngine On
RewriteBase /mantis/api/rest/

# Preserve Authorization for PHP
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Front controller: send everything to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

# Be explicit about the default index
DirectoryIndex index.php
