# Sadiq Steel HR – put this file in the project ROOT folder
# Only needed when the subdomain's document root points to the project folder
# instead of the public/ folder. It sends every request into public/.
RewriteEngine On
# Force HTTPS (remove these 2 lines until SSL is installed)
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ public/$1 [L]
# Never serve .env, composer files, artisan, logs or source folders directly
Require all denied
Options -Indexes