Skip to content

Instantly share code, notes, and snippets.

@dermanov-ru
Last active March 28, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dermanov-ru/fe707b68326a574a2b687cc496259d37 to your computer and use it in GitHub Desktop.
Save dermanov-ru/fe707b68326a574a2b687cc496259d37 to your computer and use it in GitHub Desktop.
# Закрыть полностью админку битрикса
# /bitrix/.htaccess
# ----------------------------------
# close all
Order allow,deny
Deny from all
# allow urlrewrite.php иначе не работает ЧПУ на сайте
<FilesMatch urlrewrite.php>
Order allow,deny
allow from all
</FilesMatch>
# ----------------------
# закрыть все кроме обмена с 1с
# bitrix/admin/.htaccess
# ----------------------
# allow all admin
#Allow from all
#Satisfy Any
# allow only 1c_exchange script
<Files 1c_exchange.php>
Allow from all
Satisfy Any
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment