Month: August 2016

  • CakePHP 3+ .htaccess for troublesome servers

    The Ideal .htaccess for CakePHP, with File Compression and Expires headers. Enable either mod_gzip or mod_deflate for compression. <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f # enable symbolic links RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^(.+) index.php [L] </IfModule> <ifModule mod_gzip.c> # mod_gzip_on Yes # mod_gzip_dechunk Yes # mod_gzip_item_include file .(html?|txt|css|js|php|pl|ctp)$ # […]