Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Options -Indexes
  2. ErrorDocument 404 /404.php
  3.  
  4. <IfModule mod_php5.c>
  5. php_flag allow_call_time_pass_reference 1
  6. php_flag session.use_trans_sid off
  7.  
  8. #php_value display_errors 1
  9.  
  10. #php_value mbstring.func_overload 2
  11. #php_value mbstring.internal_encoding UTF-8
  12. </IfModule>
  13.  
  14. <IfModule mod_rewrite.c>
  15. Options +FollowSymLinks
  16. RewriteEngine On
  17.  
  18. RewriteCond %{REQUEST_FILENAME} -f [OR]
  19. RewriteCond %{REQUEST_FILENAME} -l [OR]
  20. RewriteCond %{REQUEST_FILENAME} -d
  21. RewriteCond %{REQUEST_FILENAME} [\xC2-\xDF][\x80-\xBF] [OR]
  22. RewriteCond %{REQUEST_FILENAME} \xE0[\xA0-\xBF][\x80-\xBF] [OR]
  23. RewriteCond %{REQUEST_FILENAME} [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} [OR]
  24. RewriteCond %{REQUEST_FILENAME} \xED[\x80-\x9F][\x80-\xBF] [OR]
  25. RewriteCond %{REQUEST_FILENAME} \xF0[\x90-\xBF][\x80-\xBF]{2} [OR]
  26. RewriteCond %{REQUEST_FILENAME} [\xF1-\xF3][\x80-\xBF]{3} [OR]
  27. RewriteCond %{REQUEST_FILENAME} \xF4[\x80-\x8F][\x80-\xBF]{2}
  28. RewriteCond %{REQUEST_FILENAME} !/bitrix/virtual_file_system.php$
  29. RewriteRule ^(.*)$ /bitrix/virtual_file_system.php [L]
  30. RewriteCond %{REQUEST_FILENAME} !-f
  31. RewriteCond %{REQUEST_FILENAME} !-l
  32. RewriteCond %{REQUEST_FILENAME} !-d
  33. RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
  34. RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
  35. RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
  36. </IfModule>
  37.  
  38. <IfModule mod_dir.c>
  39. DirectoryIndex index.php index.html
  40. </IfModule>
  41.  
  42. <IfModule mod_expires.c>
  43. ExpiresActive on
  44. ExpiresByType image/jpeg "access plus 3 day"
  45. ExpiresByType image/gif "access plus 3 day"
  46. ExpiresByType image/png "access plus 3 day"
  47. ExpiresByType text/css "access plus 3 day"
  48. ExpiresByType application/javascript "access plus 3 day"
  49. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement