title: how to enable laravel 4 gzip?
body: <p>I have two .htaccess file in my laravel 4 project,one in root and another one in public folder.I copied this line in first:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
      RewriteCond %{REQUEST_URI} !^public
      RewriteRule ^(.*)$ public/$1 [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>because I I don't wanna type /public after domain name,and It works,but I copy the code for enabling gzip in second .htaccess it causes 500 internal server error.
  I copy below lines from <a href="http://www.gziptest.com/faq" rel="nofollow">gziptest.com/faq</a> and also I tried many other files but none of them worked for me.</p>
  
  <pre><code>   AddOutputFilterByType DEFLATE text/html
     AddOutputFilterByType DEFLATE text/plain
     AddOutputFilterByType DEFLATE text/xml
     AddOutputFilterByType DEFLATE application/x-javascript
     AddOutputFilterByType DEFLATE application/javascript
     AddOutputFilterByType DEFLATE text/javascript
     AddOutputFilterByType DEFLATE text/x-js
     AddOutputFilterByType DEFLATE text/css
  
     # Highest 9 - Lowest 1
     DeflateCompressionLevel 9
  
     # Skip browsers with known problems
     BrowserMatch ^Mozilla/4 gzip-only-text/html
     BrowserMatch ^Mozilla/4\.0[678] no-gzip
     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  </code></pre>
  
  <p>please help me?</p>