Skip to content

Instantly share code, notes, and snippets.

@viniciusss
Created May 3, 2014 12:48
Show Gist options
  • Save viniciusss/c74e48faa6a995232db2 to your computer and use it in GitHub Desktop.
Save viniciusss/c74e48faa6a995232db2 to your computer and use it in GitHub Desktop.
SetEnv APP_ENV prod
FileETag none
<IfModule mod_expires.c>
ExpiresActive On
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>
</IfModule>
# Configuracoes do symfony
<IfModule mod_rewrite.c>
RewriteEngine On
# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
# Rewrite all other queries to the front controller.
RewriteRule .? %{ENV:BASE}/index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment