feat: enhance storage file serving with direct access and route handling

This commit is contained in:
2025-11-30 08:34:35 -05:00
parent 6d2779dc4b
commit c5e5b08cbd
2 changed files with 36 additions and 0 deletions

View File

@@ -14,7 +14,13 @@
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Serve storage files directly if they exist
RewriteCond %{REQUEST_URI} ^/storage/(.*)$
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^storage/(.*)$ storage/$1 [L]
# Send Requests To Front Controller...
# Files that exist are served directly (including storage symlink)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]