Simanta
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. RewriteEngine On
  2. # If an existing asset or directory is requested go to it as it is
  3. RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
  4. RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
  5. RewriteRule ^ - [L]
  6. # If the requested resource doesn't exist, use index.html
  7. RewriteRule ^ /index.html
  8. <IfModule mod_headers.c>
  9. <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
  10. Header set Access-Control-Allow-Origin "*"
  11. </FilesMatch>
  12. </IfModule>
  13. <IfModule mod_mime.c>
  14. AddType application/x-javascript .js
  15. AddType text/css .css
  16. AddType font/eot .eot
  17. AddType font/ttf .ttf
  18. AddType font/woff .woff
  19. AddType font/woff2 .woff2
  20. </IfModule>
  21. <IfModule mod_deflate.c>
  22. AddOutputFilterByType DEFLATE font/eot font/ttf font/woff font/woff2 text/css application/x-javascript text/x-component text/html text/plain text/xml application/javascript
  23. <IfModule mod_setenvif.c>
  24. BrowserMatch ^Mozilla/4 gzip-only-text/html
  25. BrowserMatch ^Mozilla/4.0[678] no-gzip
  26. BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  27. </IfModule>
  28. </IfModule>
  29. <IfModule mod_headers.c>
  30. RewriteCond "%{HTTP:Accept-encoding}" "gzip"
  31. RewriteCond "%{REQUEST_FILENAME}\.gz" -s
  32. RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]
  33. RewriteCond "%{HTTP:Accept-encoding}" "gzip"
  34. RewriteCond "%{REQUEST_FILENAME}\.gz" -s
  35. RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]
  36. RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
  37. RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
  38. <FilesMatch "(\.js\.gz|\.css\.gz)$">
  39. Header append Content-Encoding gzip
  40. Header append Vary Accept-Encoding
  41. </FilesMatch>
  42. </IfModule>