feat: enhance storage file serving with direct access and route handling
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user