Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Remove public from route version <5.5
- //Add this to the .htaccess file in root directory
- <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>
- #Create symbolic link from storage to public
- //open terminal access and go to root directory
- php artisan storage:link
Add Comment
Please, Sign In to add comment