Skip to content

Instantly share code, notes, and snippets.

@mkusher
Created July 15, 2014 11:16
Show Gist options
  • Save mkusher/8e6895fda146e86a52eb to your computer and use it in GitHub Desktop.
Save mkusher/8e6895fda146e86a52eb to your computer and use it in GitHub Desktop.
AddDefaultCharset utf8
Options -Indexes
DirectoryIndex index.php index.html index.htm
Options +FollowSymlinks
ErrorDocument 404 /
# mod_rewrite settings
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^jcopy
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)?/(.*) index.php?/$1/$2 [L,QSA]
RewriteCond %{HTTP_HOST} ^(.+)\.jcopy
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)?/(.*) index.php?/$1/$2 [L,QSA]
# php settings
php_value magic_quotes_gpc 0
php_value magic_quotes_runtime 0
php_value magic_quotes_sybase 0
# Protect files and directories:
<Files ~ "\.(ini|log|tmpl)$">
order deny,allow
deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment