php / easypay /api /.htaccess
kingkay000's picture
Upload 18 files
070a97a verified
raw
history blame
558 Bytes
# Payment API .htaccess
# Enable clean URLs for API endpoints
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /easypay/api/
# Route /api/payments/process to process.php
RewriteRule ^payments/process$ payments/process.php [L]
</IfModule>
# Security headers
<IfModule mod_headers.c>
# Prevent directory listing
Options -Indexes
# Security headers
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "DENY"
Header set X-XSS-Protection "1; mode=block"
</IfModule>