RewriteEngine On

# توجيه كل الطلبات داخل /api/* إلى index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

# منع عرض محتوى المجلد لو لم يوجد index
Options -Indexes
