<IfModule mod_rewrite.c>
    RewriteEngine On

    # ✅ Allow direct access to uploaded images
    RewriteCond %{REQUEST_URI} ^/storage/app/public/
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ - [L]

    # ✅ Redirect everything else to Laravel's front controller
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ public/index.php [L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit 
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
