Created
May 3, 2014 12:48
-
-
Save viniciusss/c74e48faa6a995232db2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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