Options FollowSymLinks

<IfModule mod_php5.c>
	php_flag magic_quotes_gpc Off
	php_value upload_max_filesize 1000M
	php_value post_max_size 1000M
	php_value max_execution_time 900
	php_value max_input_time 900
</IfModule>

<IfModule mod_php4.c>
	php_flag magic_quotes_gpc Off
	php_value upload_max_filesize 1000M
	php_value post_max_size 1000M
	php_value max_execution_time 900
	php_value max_input_time 900
</IfModule>

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase   /cubi/	
	RewriteCond  %{SCRIPT_FILENAME}  !-f
	RewriteCond  %{SCRIPT_FILENAME}  !-d
	RewriteCond  %{REQUEST_URI}  !\.
	RewriteRule ^(.*)$ index.php?$1
</IfModule>

<FilesMatch "application.xml$">
    Order deny,allow
    Deny from all
</FilesMatch>

<FilesMatch ".inc$">
    Order deny,allow
    Deny from all
</FilesMatch>


<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 7 days"
  ExpiresByType image/gif "access plus 7 days"
  ExpiresByType image/jpeg "access plus 7 days"
  ExpiresByType image/png "access plus 7 days"
  ExpiresByType text/css "access plus 7 days"
  ExpiresByType text/javascript "access plus 7 days"
  ExpiresByType application/x-javascript "access plus 7 days"
  ExpiresByType application/javascript "access plus 7 days"  
  
  <filesMatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
  </filesMatch>
  <filesMatch "\\.(js)$">
    Header set Cache-Control "max-age=216000, public"
  </filesMatch>
</IfModule>  
