Guest User

Untitled

a guest
Mar 17th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. # Apache configuration file (see httpd.apache.org/docs/2.2/mod/quickreference.html)
  2.  
  3. # disable directory listing
  4. Options -Indexes
  5.  
  6. # enable cool URL
  7. <IfModule mod_rewrite.c>
  8. RewriteEngine On
  9.  
  10. # prevents files starting with dot to be viewed by browser
  11. RewriteRule /\.|^\. - [F]
  12.  
  13. # front controller
  14. RewriteCond %{REQUEST_FILENAME} !-f
  15. RewriteCond %{REQUEST_FILENAME} !-d
  16. RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
  17. </IfModule>
  18.  
  19. # enable gzip compression
  20. <IfModule mod_deflate.c>
  21. AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
  22. </IfModule>
  23.  
  24. # allow combined JavaScript & CSS. Inside of script.combined.js you could use <!--#include file="script.js" -->
  25. <IfModule mod_include.c>
  26. <FilesMatch "\.combined\.(js|css)$">
  27. Options +Includes
  28. SetOutputFilter INCLUDES
  29. </FilesMatch>
  30. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment