Guest User

Untitled

a guest
May 27th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. AddType application/x-javascript .js
  2.  
  3. ### Symphony 2.0.x ###
  4. <IfModule mod_rewrite.c>
  5.  
  6. RewriteEngine on
  7. RewriteBase /
  8.  
  9. ### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico"
  10. RewriteCond %{REQUEST_FILENAME} favicon.ico [NC]
  11. RewriteRule .* - [S=14]
  12.  
  13. ### IMAGE RULES
  14. RewriteRule ^image\/(.+\.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]
  15.  
  16. ### ADMIN REWRITE
  17. RewriteRule ^symphony\/?$ ./index.php?mode=administration&%{QUERY_STRING} [NC,L]
  18.  
  19. ### CHECK FOR TRAILING SLASH - Will ignore files
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_URI} !/$
  22. RewriteCond %{REQUEST_URI} !(.*)/$
  23. RewriteRule ^(.*)$ /$1/ [L,R=301]
  24.  
  25. RewriteCond %{REQUEST_FILENAME} !-d
  26. RewriteCond %{REQUEST_FILENAME} !-f
  27. RewriteRule ^symphony(\/(.*\/?))?$ ./index.php?symphony-page=$1&mode=administration&%{QUERY_STRING} [NC,L]
  28.  
  29. ### FRONTEND REWRITE - Will ignore files and folders
  30. RewriteCond %{REQUEST_FILENAME} !-d
  31. RewriteCond %{REQUEST_FILENAME} !-f
  32. RewriteRule ^(.*\/?)$ ./index.php?symphony-page=$1&%{QUERY_STRING} [L]
  33.  
  34. </IfModule>
  35. ######
  36.  
  37. <IfModule mod_headers.c>
  38. BrowserMatch MSIE best-standards-support
  39. Header set X-UA-Compatible IE=edge env=best-standards-support
  40. Header append Vary Accept-Encoding
  41. FileETag None
  42.  
  43. <FilesMatch "\.(xml|txt|html|js|css)$">
  44. Header append Cache-Control "proxy-revalidate"
  45. </FilesMatch>
  46.  
  47. <FilesMatch "\.(gif|jpg|jpeg|mp3|mp4|m4v|ogg|ogv|png|swf)$">
  48. Header append Cache-Control "public"
  49. </FilesMatch>
  50. </IfModule>
  51.  
  52. <IfModule mod_expires.c>
  53. ExpiresActive On
  54. ExpiresDefault "modification plus 1 year"
  55.  
  56. ExpiresByType image/gif "access plus 12 hours"
  57. ExpiresByType image/png "access plus 12 hours"
  58. ExpiresByType image/jpg "access plus 12 hours"
  59. ExpiresByType text/css "access plus 1 day"
  60. ExpiresByType text/javascript "access plus 1 day"
  61. ExpiresByType text/html "access plus 30 minutes"
  62. ExpiresByType text/xml "access plus 30 minutes"
  63. ExpiresByType application/atom+xml "access plus 30 minutes"
  64. ExpiresByType application/rss+xml "access plus 30 minutes"
  65.  
  66. Header unset Cache-Control
  67. </IfModule>
  68.  
  69. <IfModule mod_deflate.c>
  70. # Insert filter
  71. AddOutputFilterByType DEFLATE text/css
  72. AddOutputFilterByType DEFLATE text/html
  73. AddOutputFilterByType DEFLATE text/javascript
  74. AddOutputFilterByType DEFLATE text/plain
  75. AddOutputFilterByType DEFLATE text/xml
  76. AddOutputFilterByType DEFLATE application/xhtml+xml
  77. AddOutputFilterByType DEFLATE application/xml
  78. AddOutputFilterByType DEFLATE image/svg+xml
  79. AddOutputFilterByType DEFLATE application/rss+xml
  80. AddOutputFilterByType DEFLATE application/atom+xml
  81. AddOutputFilterByType DEFLATE application/x-javascript
  82. AddOutputFilterByType DEFLATE application/x-httpd-php
  83. AddOutputFilterByType DEFLATE application/x-httpd-fastphp
  84. AddOutputFilterByType DEFLATE application/x-httpd-eruby
  85.  
  86. BrowserMatch ^Mozilla/4 gzip-only-text/html
  87. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  88. BrowserMatch \bMSI[E]\s7 !no-gzip !gzip-only-text/html
  89.  
  90. # Make sure proxies don't deliver the wrong content
  91. Header append Vary User-Agent env=!dont-vary
  92. </IfModule>
Add Comment
Please, Sign In to add comment