Skip to content

Instantly share code, notes, and snippets.

@GiovanniK
Created November 20, 2015 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GiovanniK/a8e93807b56b98b97465 to your computer and use it in GitHub Desktop.
Save GiovanniK/a8e93807b56b98b97465 to your computer and use it in GitHub Desktop.
Laravel outside of public folder
# Disallow access to framework's files
RewriteRule ^(app/|bootstrap/|config/|database|resources|storage|tests|vendor|artisan|composer\.json|composer\.lock|gulpfile\.js|package\.json|phpspec\.yml|phpunit\.xml|readme\.md|server\.php|\.env) - [F,L,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment