We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.13.3.4. Standard .htaccess for Bitrix

The content of the standard .htaccess for 1C-Bitrix: Site Management:

  1. Options -Indexes
  2. ErrorDocument 404 /404.php
  3.  
  4. <IfModule mod_php5.c>
  5. php_flag session.use_trans_sid off
  6. #php_flag default_charset UTF-8
  7. #php_value display_errors 1
  8. </IfModule>
  9.  
  10. <IfModule mod_php7.c>
  11. php_flag session.use_trans_sid off
  12. #php_flag default_charset UTF-8
  13. #php_value display_errors 1
  14. </IfModule>
  15.  
  16. <IfModule mod_rewrite.c>
  17. Options +SymLinksIfOwnerMatch
  18. RewriteEngine On
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-l
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
  23. RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
  24. RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
  25. </IfModule>
  26.  
  27. <IfModule mod_dir.c>
  28. DirectoryIndex index.php index.html
  29. </IfModule>
  30.  
  31. <IfModule mod_expires.c>
  32. ExpiresActive on
  33. ExpiresByType image/jpeg "access plus 3 day"
  34. ExpiresByType image/gif "access plus 3 day"
  35. ExpiresByType image/png "access plus 3 day"
  36. ExpiresByType text/css "access plus 3 day"
  37. ExpiresByType application/javascript "access plus 3 day"
  38. </IfModule>

The directive on line 17 changed for compatibility with our hosting.

Content