Guest User

Untitled

a guest
Jan 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #Remove public from route version <5.5
  2.  
  3. //Add this to the .htaccess file in root directory
  4. <IfModule mod_rewrite.c>
  5. <IfModule mod_negotiation.c>
  6. Options -MultiViews
  7. </IfModule>
  8.  
  9. RewriteEngine On
  10.  
  11. RewriteCond %{REQUEST_FILENAME} -d [OR]
  12. RewriteCond %{REQUEST_FILENAME} -f
  13. RewriteRule ^ ^$1 [N]
  14.  
  15. RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
  16. RewriteRule ^(.*)$ public/$1
  17.  
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteRule ^ server.php
  21.  
  22. </IfModule>
  23.  
  24.  
  25. #Create symbolic link from storage to public
  26.  
  27. //open terminal access and go to root directory
  28. php artisan storage:link
Add Comment
Please, Sign In to add comment