# عند رفع المشروع كاملًا داخل public_html مع بقاء مجلد public: نوجّه كل الطلبات إليه.
# (الأفضل: اجعل Document Root يشير مباشرة إلى مجلد public)
Options -Indexes -MultiViews

# حماية إضافية للملفات الحساسة لو تعطّل التوجيه لأي سبب
<FilesMatch "^\.(env|git)|\.(sql|log|bak|old|orig|lock)$|^(composer\.(json|lock)|\.env\.example)$">
    Require all denied
</FilesMatch>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^$ public/ [L]
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
