Created
June 6, 2009 18:40
-
-
Save e1senh0rn/124968 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
<FilesMatch "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$"> | |
Order allow,deny | |
</FilesMatch> | |
Options -Indexes +FollowSymLinks | |
ErrorDocument 404 /index.php | |
<Files favicon.ico> | |
ErrorDocument 404 "The requested file favicon.ico was not found." | |
</Files> | |
DirectoryIndex index.php | |
<IfModule mod_php5.c> | |
php_value magic_quotes_gpc 0 | |
php_value register_globals 0 | |
php_value session.auto_start 0 | |
php_value mbstring.http_input pass | |
php_value mbstring.http_output pass | |
php_value mbstring.encoding_translation 0 | |
</IfModule> | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault A1209600 | |
ExpiresByType text/html A1 | |
</IfModule> | |
# Various rewrite rules. | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'. | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !=/favicon.ico | |
RewriteCond %{REQUEST_URI} !^/stats(.*) | |
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment