3 RewriteBase @REWRITE_BASE@
5 # Rewrites static files from embedded/raw|light
6 RewriteCond %{DOCUMENT_ROOT}/$2 -f
7 RewriteRule ^(embedded/[^/]+/)(.*)$ $2 [L]
9 # Rewrites URLs of the form 'index.php?q=x'.
10 RewriteCond %{REQUEST_FILENAME} !-f
11 RewriteCond %{REQUEST_FILENAME} !-d
12 RewriteRule ^(.*)$ ?n=$1 [L,QSA]
14 # Caches the immutable resources for seven days. Generated files (images and JS
15 # served by PHP) are not affected.
17 ExpiresByType application/javascript "access plus 7 days"
18 ExpiresByType application/x-javascript "access plus 7 days"
19 ExpiresByType image/gif "access plus 7 days"
20 ExpiresByType image/jpeg "access plus 7 days"
21 ExpiresByType image/png "access plus 7 days"
22 ExpiresByType text/css "access plus 7 days"
24 AddOutputFilterByType DEFLATE application/javascript
25 AddOutputFilterByType DEFLATE application/x-javascript
26 AddOutputFilterByType DEFLATE text/css
27 AddOutputFilterByType DEFLATE text/html
28 AddOutputFilterByType DEFLATE text/xml