RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?mlhschools.edu.sa$
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1
RewriteCond %{HTTP_HOST} ^(www.)?mlhschools.edu.sa$
RewriteRule ^(/)?$ public/index.php [L]


# Protect .env
<Files .env>
Order Allow,Deny
Deny from all
</Files>
