Skip to content

Instantly share code, notes, and snippets.

@adamthebig
adamthebig / .editorconfig
Last active August 29, 2015 14:13
Default .editorconfig
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
@adamthebig
adamthebig / .htaccess
Last active August 29, 2015 14:13
Default .htaccess file for all ExpressionEngine sites
RewriteEngine On
RewriteBase /
RewriteCond $1 !\.(gif|jpe?g|png|pdf)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
# Prevent file access
RedirectMatch 403 ^/test