# Laravel Root .htaccess
# For WAMP localhost: access via http://localhost/bedayah4it/public/
# For Production: point document root to public/ folder, then this file is not used

<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Redirect root to public folder
    RewriteRule ^$ public/ [L]
    
    # Pass all requests to public folder
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
