Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. Options -Indexes +ExecCGI
  2. AddHandler cgi-script .cgi .pl
  3.  
  4.  
  5. SetEnvIfNoCase User-Agent .*google.* search_robot
  6. SetEnvIfNoCase User-Agent .*yahoo.* search_robot
  7. SetEnvIfNoCase User-Agent .*BingBot.* search_robot
  8. SetEnvIfNoCase User-Agent .*Mozilla.* search_robot #przegladarki
  9.  
  10. Order Deny,Allow
  11. Deny from All
  12. Allow from env=search_robot
  13.  
  14. <filesMatch ".(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$">
  15. Header set Cache-Control "max-age=846000, public"
  16. </filesMatch>
  17.  
  18. ## EXPIRES CACHING ##
  19. <IfModule mod_expires.c>
  20. ExpiresActive On
  21. ExpiresByType image/jpg "access 1 year"
  22. ExpiresByType image/jpeg "access 1 year"
  23. ExpiresByType image/gif "access 1 year"
  24. ExpiresByType image/png "access 1 year"
  25. ExpiresByType text/css "access 1 month"
  26. ExpiresByType text/html "access 1 month"
  27. ExpiresByType application/pdf "access 1 month"
  28. ExpiresByType text/x-javascript "access 1 month"
  29. ExpiresByType application/x-shockwave-flash "access 1 month"
  30. ExpiresByType image/x-icon "access 1 year"
  31. ExpiresDefault "access 1 month"
  32. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement