إرتقاء
إرتقاء

Reputation: 43

can not access image from storage folder

my website can not access images from the storage folder, I have deployed my Laravel project in godday.

this is my htaccess file

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule> 

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^$1 [N]

RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/$1 

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
</IfModule>

Upvotes: 0

Views: 127

Answers (1)

Emil Georgiev
Emil Georgiev

Reputation: 528

Run php artisan storage:link and everything should be ok after that.

Upvotes: 0

Related Questions