Skip to content

Instantly share code, notes, and snippets.

@alekseypotapov-dev
Forked from rudowastaken/.htaccess
Last active August 29, 2015 14:12
Show Gist options
  • Save alekseypotapov-dev/3e243b1a8628bedc9514 to your computer and use it in GitHub Desktop.
Save alekseypotapov-dev/3e243b1a8628bedc9514 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment