# .htaccess-template for Clansuite
#
# Apache Configuration File
# httpd.apache.org/docs/2.2/mod/quickreference.html
#
# SVN: $Id: htaccess-full.txt 5284 2011-05-12 00:20:57Z vain $
# (1) Rename "htaccess.txt" to ".htaccess"
# (2) If you don't need htaccess, then DELETE IT. It just slow's down Webserver processing.
# (3) Redirect all Requests to the domain (http://www.domain.xy) to index.php
DirectoryIndex index.php
# Allow Symlinks
Options +FollowSymLinks
# Disallow Index-Listings
Options -Indexes
# (4) General and PHP.ini Settings
SetEnv TZ Europe/Berlin
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
# XDebug Remote Debugger
php_value xdebug.remote_enable "On"
php_value xdebug.remote_host "localhost"
php_value xdebug.remote_port "9000"
php_value xdebug.remote_handler "dbgp"
# XDebug Profiler
#php_value xdebug.profiler_enable "1"
#php_value xdebug.profiler_output_dir "c:\temp"
# Exlude .svn files (in case you are fetching directly from svn to the webserver)
Order allow, deny
Deny from all
# (6) Apache2 with "LoadModule mod_deflate"
# for output compression of the following specific file-content-types:
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
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
# (7) Apache2 with "LoadModule mod_rewrite"
# for Rewrite Engine and Rewrite Rules (for Apache)
# (7a) Turn Rewrite Engine on
RewriteEngine on
# uncomment for better debugging of rewrite rules
#RewriteLog /var/log/apache2/clansuite-rewrite.log
# (7b) Set the Base for the Rewrite Engine (which is the path to your /Clansuite Directory)
# Examples:
# RewriteBase /YourClansuiteDirectory
# RewriteBase /
#RewriteBase /
# (7c) Rewrite Rules
# if it's not a file AND it's not a directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# disable rewrite for css, images, javascript, archives and pdf,txt
#RewriteCond %{REQUEST_FILENAME} !\.(?:png|gif|jpeg|jpg|pdf|php|js|ico|txt|css|rar|zip|tar\.gz)$
# route all non-ressource/file/dir requests to index.php
#RewriteRule ^(.*).(.*)? index.php?mod=$1&action=$2
# all requests are redirected the frontcontroller (index.php)
RewriteRule ^(.*)$ index.php [QSA,L]
# (8) Apache2 with "LoadModule mod_expires"
# Removed Etag + Smaller Header for image, javascript, css files with cache lifetime 1 year+
ExpiresActive On
ExpiresDefault "access plus 1 years"
# (9) Apache2 with "LoadModule mod_headers"
# Turns off ETags (check for newer version of file)
# Forces webbrowser to rely on Cache-Control and Expires headers
Header unset ETag
Header unset Last-Modified
FileETag none
# (10) Apache2 with "LoadModule mod_gzip"
# Compresses your Content
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)$
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
#