Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options -Indexes +ExecCGI
- AddHandler cgi-script .cgi .pl
- SetEnvIfNoCase User-Agent .*google.* search_robot
- SetEnvIfNoCase User-Agent .*yahoo.* search_robot
- SetEnvIfNoCase User-Agent .*BingBot.* search_robot
- SetEnvIfNoCase User-Agent .*Mozilla.* search_robot #przegladarki
- Order Deny,Allow
- Deny from All
- Allow from env=search_robot
- <filesMatch ".(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$">
- Header set Cache-Control "max-age=846000, public"
- </filesMatch>
- ## EXPIRES CACHING ##
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType image/jpg "access 1 year"
- ExpiresByType image/jpeg "access 1 year"
- ExpiresByType image/gif "access 1 year"
- ExpiresByType image/png "access 1 year"
- ExpiresByType text/css "access 1 month"
- ExpiresByType text/html "access 1 month"
- ExpiresByType application/pdf "access 1 month"
- ExpiresByType text/x-javascript "access 1 month"
- ExpiresByType application/x-shockwave-flash "access 1 month"
- ExpiresByType image/x-icon "access 1 year"
- ExpiresDefault "access 1 month"
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement