Created
July 15, 2014 11:16
-
-
Save mkusher/8e6895fda146e86a52eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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