Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.95 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.     #RewriteBase /
  10.    
  11.     # prevents files starting with dot to be viewed by browser
  12.     RewriteRule /\.|^\. - [F]
  13.  
  14.     # front controller
  15.     RewriteCond %{REQUEST_FILENAME} !-f
  16.     RewriteCond %{REQUEST_FILENAME} !-d
  17.     RewriteRule !\.(pdf|js|ico|gif|jpg|png|css|rar|zip|tar\.gz)$ index.php [L]
  18. </IfModule>
  19.  
  20. # enable gzip compression
  21. <IfModule mod_deflate.c>
  22.     AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript text/javascript application/javascript application/json
  23. </IfModule>
  24.  
  25. # allow combined JavaScript & CSS. Inside of script.combined.js you could use <!--#include file="script.js" -->
  26. <IfModule mod_include.c>
  27.     <FilesMatch "\.combined\.(js|css)$">
  28.         Options +Includes
  29.         SetOutputFilter INCLUDES
  30.     </FilesMatch>
  31. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement