# This is a ".htaccess" template for Clansuite
# SVN: $Id$
# Don't show directory listings for URLs which map to a directory.
DirectoryIndex index.php
# Follow symbolic links in this directory.
Options +FollowSymLinks
Options -Indexes
SetEnv TZ Europe/Berlin
RewriteEngine on
# rewrite "www.domain.com -> domain.com"
#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php [QSA,L]
# disable direct access to database, config, text, log and template files
order allow,deny
deny from all
php_value magic_quotes_runtime "0"
php_value magic_quotes_gpc "0"
php_value register_globals "Off"
php_value output_buffering "1"
php_value output_handler ob_gzhandler
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
# webfonts and svg:
SetOutputFilter DEFLATE
# Netscape 4.x problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# ensure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
Header set cache-control: public
ExpiresActive On
ExpiresDefault "access plus 1 years"
# Force use of Chromium Render Engine if IE
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
# inform proxies that content changes based on user agent
Header append Vary User-Agent
# do not serve cross domain ajax
# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
Header set Access-Control-Allow-Origin "*"
Header unset ETag
Header unset Last-Modified
FileETag none
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|xml|css|js|php|pl|gif|jpg|jpeg|png|swf|flv|eot|woff|svg|ttf)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
# (11) If you have trouble uploading larger files, increase the maximum file size.
#
#
# php_value upload_max_filesize -1
# php_value post_max_size 512M
# php_value memory_limit -1
# php_value max_input_time -1
# php_value max_execution_time 0
# php_value error_reporting 5
#