AddDefaultCharset UTF-8
Options SymLinksIfOwnerMatch
Options -Indexes
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]
RewriteCond %{HTTP_HOST} ^site.com$ [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
ExpiresByType application/javascript "access 1 year"
ExpiresByType application/x-javascript "access 1 year"
ExpiresByType text/css "access 1 year"
ExpiresByType text/html "access 1 year"
RewriteRule ^(.*).tpl$ [R=404]
RewriteRule ^(.*).zip$ [R=404]
RewriteCond $1 !^(index.php|user_guide|uploads/.*|application/third_party/.*|application/third_party/filemanager/.*|application/third_party/tinymce/.*|favicon.ico|docs|favicon.png|captcha/.*|application/.*/templates|application/.*/assets/js|application/.*/assets/css|application/.*/assets/images|CHANGELOG.xml|templates|js)
# RewriteRule ^(.*)$ /index.php/$1 [L]
####################################
# or
# RewriteRule ^(. )$ index.php?$1 [L]
# or
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]