AddDefaultCharset UTF-8

IndexIgnore *

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

<Files "tilecache.cfg">
    Order allow,deny
    Deny from all
</Files>

<IfModule mod_php5.c>
    php_flag magic_quotes_gpc off
    php_flag short_open_tag on
    php_value upload_max_filesize 50M
    php_value post_max_size 50M
    # php_flag xdebug.profiler_enable on
</IfModule>

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/javascript   
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/json
        
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4.[0678] no-gzip
    BrowserMatch bMSIEs7  !no-gzip !gzip-only-text/html

    <IfModule mod_headers.c>
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^tiles/(.+)$ /tilecache/tilecache.cgi/1.0.0/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^link/([a-zA-Z][a-zA-Z])\.html$ /$1/default/link [R,NC,L]

    RewriteRule ^static\-\d+\.\d+\.\d+/(.+)$ /static/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css A2592000
    ExpiresByType text/javascript A2592000
    ExpiresByType application/javascript A2592000
    ExpiresDefault A86400
</IfModule>

FileETag none
