.htaccess 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Options -Indexes
  2. ErrorDocument 404 /404.php
  3. <IfModule mod_rewrite.c>
  4. Options +FollowSymLinks
  5. RewriteEngine On
  6. RewriteCond %{REQUEST_FILENAME} -f [OR]
  7. RewriteCond %{REQUEST_FILENAME} -l [OR]
  8. RewriteCond %{REQUEST_FILENAME} -d
  9. RewriteCond %{REQUEST_FILENAME} [\xC2-\xDF][\x80-\xBF] [OR]
  10. RewriteCond %{REQUEST_FILENAME} \xE0[\xA0-\xBF][\x80-\xBF] [OR]
  11. RewriteCond %{REQUEST_FILENAME} [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} [OR]
  12. RewriteCond %{REQUEST_FILENAME} \xED[\x80-\x9F][\x80-\xBF] [OR]
  13. RewriteCond %{REQUEST_FILENAME} \xF0[\x90-\xBF][\x80-\xBF]{2} [OR]
  14. RewriteCond %{REQUEST_FILENAME} [\xF1-\xF3][\x80-\xBF]{3} [OR]
  15. RewriteCond %{REQUEST_FILENAME} \xF4[\x80-\x8F][\x80-\xBF]{2}
  16. RewriteCond %{REQUEST_FILENAME} !/bitrix/virtual_file_system.php$
  17. RewriteRule ^(.*)$ /bitrix/virtual_file_system.php [L]
  18. RewriteCond %{REQUEST_FILENAME} !-f
  19. RewriteCond %{REQUEST_FILENAME} !-l
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21. RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
  22. RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
  23. RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
  24. </IfModule>
  25. <IfModule mod_dir.c>
  26. DirectoryIndex index.php index.html
  27. </IfModule>
  28. <IfModule mod_expires.c>
  29. ExpiresActive on
  30. ExpiresByType image/jpeg "access plus 3 day"
  31. ExpiresByType image/gif "access plus 3 day"
  32. ExpiresByType image/png "access plus 3 day"
  33. ExpiresByType text/css "access plus 3 day"
  34. ExpiresByType application/javascript "access plus 3 day"
  35. </IfModule>