Skip to content

Instantly share code, notes, and snippets.

@rudowastaken
Last active April 18, 2019 18:43
Show Gist options
  • Save rudowastaken/7173900 to your computer and use it in GitHub Desktop.
Save rudowastaken/7173900 to your computer and use it in GitHub Desktop.
ModRewrite for Laravel project deployment @ websupport.sk Use in the application root
DirectorySlash Off
Options +FollowSymlinks -Indexes -MultiViews
AddDefaultCharset utf-8
DirectoryIndex /public/index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1 [L,QSA]
</IfModule>
@riki137
Copy link

riki137 commented Feb 10, 2016

riadky 10 a 11 by som odstranil, na kolko ak sa nemylim, nam hovoria aby sme existujuce pathy nepresmerovali. My chceme vsak spravit vsetko mimo public nepristupne.

@VeeeneX
Copy link

VeeeneX commented Jan 3, 2018

Dikes!

@VeeeneX
Copy link

VeeeneX commented Jan 3, 2018

  • Skryvanie env :)
<Files .env>
    Order allow,deny
    Deny from all
</Files>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment