2010-09-24, 17:01:53
Hi spring this is my .htaccess, tuned for speed. hth
Code:
AddDefaultCharset UTF-8
RewriteEngine on
ExpiresActive On
ExpiresDefault A180
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header unset Last-Modified
ExpiresDefault A1209600
Header append Cache-Control "public"
</FilesMatch>
<FilesMatch "\.(html|htm|php)$">
ExpiresDefault A3600
Header append Cache-Control "private, proxy-revalidate"
</FilesMatch>
Header unset ETag
FileETag None
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/xhtml+xml
</IfModule>
# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9-]+)/?$ index.php?id=$1 [QSA,L]