# Laravel Root .htaccess
# Works for both XAMPP subdirectory and cPanel deployment

<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # For XAMPP subdirectory: /reminder/
    # For cPanel: / or /app/ or any subdirectory
    
    # Skip if already in public folder
    RewriteCond %{REQUEST_URI} !^/public/
    
    # Skip if file exists
    RewriteCond %{REQUEST_FILENAME} !-f
    
    # Skip if directory exists
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Redirect to public folder
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
