Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. AddDefaultCharset UTF-8
  2. DirectoryIndex index.php
  3. RewriteEngine On
  4.  
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7.  
  8. RewriteRule index.php.* - [L]
  9.  
  10. RewriteCond %{REQUEST_FILENAME} !-d
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12.  
  13. RewriteRule ^(.*) index.php?id=$1&%{QUERY_STRING}
  14.  
  15. <IfModule mod_gzip.c>
  16. mod_gzip_on Yes
  17. mod_gzip_dechunk Yes
  18. mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  19. mod_gzip_item_include handler ^cgi-script$
  20. mod_gzip_item_include mime ^text\.*
  21. mod_gzip_item_include mime ^application/x-javascript.*
  22. mod_gzip_item_exclude mime ^image\.*
  23. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  24. </IfModule>
  25. <IfModule mod_expires.c>
  26. ExpiresActive On
  27. ExpiresDefault "access 7 days"
  28. ExpiresByType application/javascript "access plus 1 year"
  29. ExpiresByType text/javascript "access plus 1 year"
  30. ExpiresByType text/css "access plus 1 year"
  31. ExpiresByType text/html "access plus 7 day"
  32. ExpiresByType text/x-javascript "access 1 year"
  33. ExpiresByType image/gif "access plus 1 year"
  34. ExpiresByType image/jpeg "access plus 1 year"
  35. ExpiresByType image/png "access plus 1 year"
  36. ExpiresByType image/jpg "access plus 1 year"
  37. ExpiresByType image/x-icon "access 1 year"
  38. ExpiresByType application/x-shockwave-flash "access 1 year"
  39. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement