<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /api/v1/
    
    # Remove .php extension - allows .aspx.php files to be accessed as .aspx
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.php -f
    RewriteRule ^(.*)$ $1.php [L]
    
    # Force HTTPS (optional but recommended)
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Prevent directory listing
Options -Indexes

# Set default charset
AddDefaultCharset UTF-8
