Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # STARTCOOKIENITRO
- <FilesMatch "\.(jpg|jpeg|png|gif|swf|svg|JPG|JPEG|PNG|GIF|SWF|SVG)$">
- Header unset Cookie
- Header unset Set-Cookie
- </FilesMatch>
- # ENDCOOKIENITRO
- # STARTNITRO
- ExpiresActive On
- #CSS JS XML TXT - 1 WEEK
- <FilesMatch "\.(xml|txt|css|js)$">
- Header set Cache-Control "max-age=604800, public"
- ExpiresDefault "access plus 1 week"
- </FilesMatch>
- #JPG JPEG PNG GIF SWF SVG - 1 MONTH
- <FilesMatch "\.(jpg|jpeg|png|gif|swf|svg|JPG|JPEG|PNG|GIF|SWF|SVG)$">
- Header set Cache-Control "max-age=2678400, public"
- ExpiresDefault "access plus 1 month"
- Header set Last-Modified "Wed, 05 Jun 2009 06:40:46 GMT"
- </FilesMatch>
- #OTF WOFF TTF ICO PDF FLV - 1 MONTH
- <FilesMatch "\.(otf|ico|pdf|flv|woff|ttf)$">
- Header set Cache-Control "max-age=2678400, public"
- ExpiresDefault "access plus 1 month"
- </FilesMatch>
- # ENDNITRO
- # STARTCOMPRESSNITRO
- RewriteEngine On
- RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
- RewriteCond %{SCRIPT_FILENAME} !-d
- RewriteRule ^(\/?((catalog)|(assets)).+)\.css$ assets/style.php?l=4&p=$1&c=604800 [NC,L]
- RewriteCond %{SCRIPT_FILENAME} !-d
- RewriteRule ^(\/?((catalog)|(assets)).+)\.js$ assets/script.php?l=4&p=$1&c=604800 [NC,L]
- AddType image/svg+xml .svg
- AddOutputFilterByType DEFLATE image/svg+xml
- AddType application/x-font-woff .woff
- AddOutputFilterByType DEFLATE application/x-font-woff
- # ENDCOMPRESSNITRO
- Options +FollowSymlinks
- # Prevent Directoy listing
- Options -Indexes
- # Prevent Direct Access to files
- <FilesMatch "\.(tpl|ini|log)">
- Order deny,allow
- Deny from all
- </FilesMatch>
- # SEO URL Settings
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^www.goldwell.pp.ua$ [NC]
- RewriteRule ^(.*)$ http://goldwell.pp.ua/$1 [R=301,L]
- RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/
- RewriteRule ^index\.html$ / [R=301,L]
- RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
- RewriteRule ^index\.php$ / [R=301,L]
- RewriteBase /
- RewriteRule ^sitemap.xml$ index.php?route=feed/fast_sitemap [NS,NC,L,QSA]
- RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
- RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
- #Локаль сервера
- SetEnv TZ Europe/Kiev
- # кеширование в браузере на стороне пользователя
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault "access 7 days"
- ExpiresByType application/javascript "access plus 1 year"
- ExpiresByType text/javascript "access plus 1 year"
- ExpiresByType text/css "access plus 1 year"
- ExpiresByType text/html "access plus 7 day"
- ExpiresByType text/x-javascript "access 1 year"
- ExpiresByType image/gif "access plus 1 year"
- ExpiresByType image/jpeg "access plus 1 year"
- ExpiresByType image/png "access plus 1 year"
- ExpiresByType image/jpg "access plus 1 year"
- ExpiresByType image/x-icon "access 1 year"
- ExpiresByType application/x-shockwave-flash "access 1 year"
- </IfModule>
- # Cache-Control
- <ifModule mod_headers.c>
- # 30 дней
- <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
- Header set Cache-Control "max-age=2592000, public"
- </filesMatch>
- # 30 дней
- <filesMatch "\.(css|js)$">
- Header set Cache-Control "max-age=2592000, public"
- </filesMatch>
- # 2 дня
- <filesMatch "\.(xml|txt)$">
- Header set Cache-Control "max-age=172800, public, must-revalidate"
- </filesMatch>
- # 1 день
- <filesMatch "\.(html|htm|php)$">
- Header set Cache-Control "max-age=172800, private, must-revalidate"
- </filesMatch>
- </ifModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement