Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<ifModule mod_expires.c>
2
  ExpiresActive On
3
  ExpiresDefault "access plus 1 seconds"
4
  ExpiresByType text/html "access plus 1 seconds"
5
  ExpiresByType image/gif "access plus 2592000 seconds"
6
  ExpiresByType image/jpeg "access plus 2592000 seconds"
7
  ExpiresByType image/png "access plus 2592000 seconds"
8
  ExpiresByType text/css "access plus 604800 seconds"
9
  ExpiresByType text/javascript "access plus 216000 seconds"
10
  ExpiresByType application/x-javascript "access plus 216000 seconds"
11
</ifModule>
12
 
13
<ifModule mod_headers.c>
14
  <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
15
    Header set Cache-Control "max-age=2592000, public"
16
  </filesMatch>
17
  <filesMatch "\\.(css)$">
18
    Header set Cache-Control "max-age=604800, public"
19
  </filesMatch>
20
  <filesMatch "\\.(js)$">
21
    Header set Cache-Control "max-age=216000, private"
22
  </filesMatch>
23
  <filesMatch "\\.(xml|txt)$">
24
    Header set Cache-Control "max-age=216000, public, must-revalidate"
25
  </filesMatch>
26
  <filesMatch "\\.(html|htm|php)$">
27
    Header set Cache-Control "max-age=1, private, must-revalidate"
28
  </filesMatch>
29
</ifModule>
30
 
31
RewriteEngine On
32
 
33
# The following rule tells Apache that if the requested filename
34
# exists, simply serve it.
35
RewriteCond %{REQUEST_FILENAME} -s [OR]
36
RewriteCond %{REQUEST_FILENAME} -l [OR]
37
RewriteCond %{REQUEST_FILENAME} -d
38
RewriteRule ^.*$ - [L]
39
 
40
# The following rewrites all other queries to index.php. The
41
# condition ensures that if you are using Apache aliases to do
42
# mass virtual hosting or installed the project in a subdirectory,
43
# the base path will be prepended to allow proper resolution of
44
# the index.php file; it will work in non-aliased environments
45
# as well, providing a safe, one-size fits all solution.
46
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
47
RewriteRule ^(.*) - [E=BASE:%1]
48
RewriteRule ^(.*)$ %{ENV:BASE}/index.php [L]