Forumlar / Cotonti / Core Labs / Ideas / Enhanced .htaccess

Proposed default .htaccess file for Cotonti

GHengeveld
#27291 2010-11-30 08:04
Recently I've been looking into the HTML5 Boilerplate framework. This is a collection of front-end development best practices, css resets, javascript enhancements and a lot of other cool stuff aimed at speeding up your website. The framework also comes with a .htaccess file with tweaks for Apache servers.

I've worked a bit on this file to make it suitable for Cotonti. I've added some of my own tweaks that I often use with Cotonti too. I suggest we include this in Cotonti by default.

http://www.cotonti.com/datas/users/htaccess_68.txt

Features:
  • Add support for modern filetypes
  • Force PHP 5
  • Set file compression on web fonts
  • Configure cache expiration and disable ETags
  • Force Internet Explorer to use latest parsing engine, or Chrome frame if present
  • Disallow access to urltrans, cache and template files
  • Set ErrorDocuments to Cotonti messages
  • Automatically add www. to domain name for SEO *
  • Remove ending slash from URL for SEO *
* With support for HTTPS
Bu gönderi Koradhil tarafından düzenlendi (2010-11-30 08:41, 14 yıllar önce)