Search

Laravel Cannot Access Image Stored in Storage Folder after Uploading in Server

  • Share this:
post-title

 

 

-------------------------------- .htaccess file code -------------------------

   

        Options -MultiViews -Indexes

   

 

    RewriteEngine On

 

    # Handle Authorization Header

    RewriteCond %{HTTP:Authorization} .

    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

 

    # Redirect Trailing Slashes If Not A Folder...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_URI} (.+)/$

    RewriteRule ^ %1 [L,R=301]

 

    # Send Requests To Front Controller...

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteRule ^ index.php [L]

 

Script Next

Script Next

Discover expert programming tips, tutorials, and the latest tech trends at ScriptNext. Stay updated with insightful articles on web development, software engineering, and best practices for developers. Enhance your coding skills with our in-depth guides and resources