# WebGIS Configuration Header add Access-Control-Allow-Origin "*" Header add Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" Header add Access-Control-Allow-Headers "Content-Type" RewriteEngine On RewriteBase /webgis/ # Allow access to PHP files RewriteRule ^api/(.*)\.php$ $1.php [L] # Disable directory listing Options -Indexes # Allow PHP execution AddType application/x-httpd-php .php