Spaces:
Running
Running
| # 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 | |
| </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> | |