Skip to content

Instantly share code, notes, and snippets.

@d0d0
Forked from rudowastaken/.htaccess
Created September 5, 2017 15:12
Show Gist options
  • Save d0d0/ba8706a0439f87981ac7d6b69080a4b0 to your computer and use it in GitHub Desktop.
Save d0d0/ba8706a0439f87981ac7d6b69080a4b0 to your computer and use it in GitHub Desktop.
ModRewrite for Laravel project deployment @ websupport.skUse in the application root
DirectorySlash Off
Options +FollowSymlinks -Indexes -MultiViews
AddDefaultCharset utf-8
DirectoryIndex /public/index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ /public/$1 [L,QSA]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment