fork download
  1. Options +FollowSymlinks
  2. # Prevent Directoy listing
  3. Options -Indexes
  4.  
  5. AddType application/vnd.ms-fontobject .eot
  6. AddType application/x-font-ttf .ttf
  7. AddType application/x-font-opentype .otf
  8. AddType application/x-font-woff .woff
  9. AddType image/svg+xml .svg
  10.  
  11. php_value session.gc_maxlifetime 21600
  12. php_value session.cookie_lifetime 21600
  13.  
  14. <ifModule mod_gzip.c>
  15. mod_gzip_on Yes
  16. mod_gzip_dechunk Yes
  17. mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
  18. mod_gzip_item_include handler ^cgi-script$
  19. mod_gzip_item_include mime ^text/.*
  20. mod_gzip_item_include mime ^application/x-javascript.*
  21. mod_gzip_item_exclude mime ^image/.*
  22. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  23. </ifModule>
  24.  
  25. <ifModule mod_deflate.c>
  26. <IfModule mod_filter.c>
  27. AddOutputFilterByType DEFLATE text/plain text/html
  28. AddOutputFilterByType DEFLATE text/css
  29. AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
  30. AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/rss+xml
  31. AddOutputFilterByType DEFLATE application/json
  32. AddOutputFilterByType DEFLATE application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon
  33. AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml
  34. </ifModule>
  35. </ifModule>
  36. <ifModule mod_headers.c>
  37. <FilesMatch "\.(html|js|css)$">
  38. Header set Cache-Control "max-age=2592000, public"
  39. </FilesMatch>
  40. <Files *.txt>
  41. Header add Cache-Control "max-age=43200, public"
  42. </Files>
  43. <FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$">
  44. Header set Cache-Control "max-age=2592000, public"
  45. </FilesMatch>
  46. <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
  47. Header unset Cache-Control
  48. </FilesMatch>
  49. </IfModule>
  50. <IfModule mod_expires.c>
  51. ExpiresActive On
  52. ExpiresDefault "access plus 10 month"
  53. ExpiresByType image/gif "access plus 1 month"
  54. ExpiresByType image/png "access plus 1 month"
  55. ExpiresByType image/jpg "access plus 1 month"
  56. ExpiresByType image/jpeg "access plus 1 month"
  57. ExpiresByType text/css "access plus 1 year"
  58. ExpiresByType application/javascript "access plus 1 year"
  59. ExpiresByType text/javascript "access plus 1 year"
  60. ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
  61. ExpiresByType application/x-font-ttf "access plus 1 year"
  62. ExpiresByType application/x-font-opentype "access plus 1 year"
  63. ExpiresByType application/x-font-woff "access plus 1 year"
  64. ExpiresByType image/svg+xml "access plus 1 year"
  65. </IfModule>
  66.  
  67. <IfModule mod_headers.c>
  68. </IfModule>
  69. FileETag None
  70.  
  71. # Prevent Direct Access to files
  72. #<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
  73. <FilesMatch "(?i)((\.tpl|\.ini|\.log))">
  74. Order deny,allow
  75. Deny from all
  76. </FilesMatch>
  77.  
  78. # SEO URL Settings
  79. RewriteEngine On
  80. RewriteCond %{HTTPS} on
  81. # First rewrite to HTTPS:
  82. # Don't put www. here. If it is already there it will be included, if not
  83. # the subsequent rule will catch it.
  84. RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  85. # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
  86. RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
  87. RewriteRule .* http://%1/$0 [L,R=301]
  88.  
  89. RewriteBase /
  90. RewriteRule ^catalogs/catalogs/(.*) /catalogs/$1 [R=301,L]
  91. RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
  92. RewriteRule ^market.yml$ index.php?route=payment/yandex_money/market [L]
  93. RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
  94. RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
  95. RewriteCond %{REQUEST_FILENAME} !-f
  96. RewriteCond %{REQUEST_URI} !(.*)/$
  97. RewriteRule ^(.*[^/])$ $1/ [L,QSA,R=301]
  98. RewriteCond %{REQUEST_FILENAME} !-f
  99. RewriteCond %{REQUEST_FILENAME} !-d
  100. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  101. RewriteRule tag/(.*?)/([0-9]+)/$ index.php?route=product/search&tag=$1&page=$2 [L,QSA]
  102. RewriteRule tag/(.*?)/$ index.php?route=product/search&tag=$1 [L,QSA]
  103. RewriteRule search/(.*?)/$ index.php?route=product/search&search=$1 [L,QSA]
  104. RewriteRule catalog/price/$ index.php?route=product/category&path=75&sale [L,QSA]
  105. RewriteCond %{REQUEST_FILENAME} !-f
  106. RewriteCond %{REQUEST_FILENAME} !-d
  107. RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
  108. RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Success #stdin #stdout 0.02s 24232KB
stdin
Standard input is empty
stdout
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes

AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg

php_value session.gc_maxlifetime 21600
php_value session.cookie_lifetime 21600

<ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

<ifModule mod_deflate.c>
  <IfModule mod_filter.c>
      AddOutputFilterByType DEFLATE text/plain text/html
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
      AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/rss+xml
      AddOutputFilterByType DEFLATE application/json
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon
      AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml
  </ifModule>
</ifModule>
<ifModule mod_headers.c>
    <FilesMatch "\.(html|js|css)$">
	Header set Cache-Control "max-age=2592000, public"
    </FilesMatch>
    <Files *.txt>
	Header add Cache-Control "max-age=43200, public"
    </Files>
    <FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$">
	Header set Cache-Control "max-age=2592000, public"
    </FilesMatch>
    <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
	Header unset Cache-Control
    </FilesMatch>
</IfModule>
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 10 month"
    ExpiresByType image/gif                 "access plus 1 month"
    ExpiresByType image/png                 "access plus 1 month"
    ExpiresByType image/jpg                 "access plus 1 month"
    ExpiresByType image/jpeg                "access plus 1 month"
    ExpiresByType text/css                  "access plus 1 year"
    ExpiresByType application/javascript    "access plus 1 year"
    ExpiresByType text/javascript           "access plus 1 year"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
    ExpiresByType application/x-font-ttf "access plus 1 year"
    ExpiresByType application/x-font-opentype "access plus 1 year"
    ExpiresByType application/x-font-woff "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"
</IfModule>

<IfModule mod_headers.c>
    Header unset ETag
</IfModule>
FileETag None

# Prevent Direct Access to files
#<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
<FilesMatch "(?i)((\.tpl|\.ini|\.log))">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTPS} on
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule .* http://%1/$0 [L,R=301]

RewriteBase /
RewriteRule ^catalogs/catalogs/(.*) /catalogs/$1 [R=301,L]
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^market.yml$ index.php?route=payment/yandex_money/market [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*[^/])$ $1/ [L,QSA,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule tag/(.*?)/([0-9]+)/$ index.php?route=product/search&tag=$1&page=$2 [L,QSA]
RewriteRule tag/(.*?)/$ index.php?route=product/search&tag=$1 [L,QSA]
RewriteRule search/(.*?)/$ index.php?route=product/search&search=$1 [L,QSA]
RewriteRule catalog/price/$ index.php?route=product/category&path=75&sale [L,QSA]
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]