Htaccess File

sumpygump/apricot/master/web/.htaccess

DEFLATE, GET, POST, REQUEST_FILENAME
RewriteEngine On

# Move along if this is a request for an actual file or folder
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Redirect all scripts to index.php
#RewriteBase /apricot-1.3/source/web/
RewriteBase /
RewriteRule ^(.*)$ index.php [PT,L]

#php_flag magic_quotes_gpc off
#php_flag magic_quotes_runtime off
#php_flag magic_quotes_sybase off
#php_flag register_globals off
#php_flag track_errors on

# Turn off directory listings
Options -Indexes
Options -Multiviews

# Use xdebug
php_value xdebug.profiler_enable_trigger 1
php_value xdebug.profiler_append 1
php_value xdebug.var_display_max_depth 10
php_value xdebug.show_local_vars 1

# Leverage browser caching
<IfModule mod_headers.c>
    <FilesMatch "(.css|.js|.gif|.jpg|.png|.ico)$">
        Header Set Cache-Control "public, max-age=31536000"
    </FilesMatch>
</IfModule>

# Use mod_deflate
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
</IfModule>

# Turn on mod gzip
<IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_keep_workfiles No
    mod_gzip_can_negotiate Yes
    mod_gzip_add_header_count Yes
    mod_gzip_send_vary Yes
    mod_gzip_command_version '/mod_gzip_status'
    mod_gzip_min_http 1000
    mod_gzip_minimum_file_size 300
    mod_gzip_maximum_file_size 512000
    mod_gzip_maximum_inmem_size 60000
    mod_gzip_handle_methods GET POST
    mod_gzip_temp_dir /tmp
    mod_gzip_item_include file .html$
    mod_gzip_item_include file .php$
    mod_gzip_item_include file .pl$
    mod_gzip_item_include file .rb$
    mod_gzip_item_include file .py$
    mod_gzip_item_include file .cgi$
    mod_gzip_item_include file .css$
    mod_gzip_item_include file .js$
    mod_gzip_item_include mime ^application/javascript$
    mod_gzip_item_include mime ^application/x-javascript$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^httpd/unix-directory$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include handler ^server-status$
    mod_gzip_item_include handler ^server-info$
    mod_gzip_item_include handler ^application/x-httpd-php
    mod_gzip_item_exclude mime ^image/.*
</IfModule>
Exit mobile version