12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- Options -Indexes
- Options +FollowSymLinks
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteRule ^test-mod-rewrite$ mod-rewrite.php [NC,L]
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteRule ^.*$ index.php [NC,L]
- </IfModule>
- <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
- Header set Cache-Control "max-age=604800, public"
- </FilesMatch>
- <FilesMatch "\.(xml|txt)$">
- Header set Cache-Control "max-age=86400, public, must-revalidate"
- </FilesMatch>
- <IfModule mod_deflate.c>
- AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
- </IfModule>
|