Options -Indexes RewriteEngine On # Route the JSON-looking URL to the PHP endpoint RewriteRule ^api/managed-stations\.json$ api/managed-stations.php [L]