Skip to content

Instantly share code, notes, and snippets.

@GiovanniK
Created November 20, 2015 17:03
Show Gist options
  • 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