Разворачивание dev версии

Помни и не забывай

Robots.txt

User-agent: *
Disallow: /

.htaccess

Options -Indexes 
ErrorDocument 404 /404.php

# Для режима авторизации
AuthType Basic
AuthName "Mosurbanforum"
# полный путь к файлу .htpasswd
AuthUserFile /var/www/u0675694/data/www/dev.mosurbanforum.com/.htpasswd
Require valid-user

# Стандартный Bitrix .htaccess
<IfModule mod_php5.c>
	php_flag allow_call_time_pass_reference 1
	php_flag session.use_trans_sid off

	#php_value display_errors 1

	#php_value mbstring.internal_encoding UTF-8
</IfModule>

<IfModule mod_rewrite.c>
	Options +FollowSymLinks
	RewriteEngine On
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-l
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>

<IfModule mod_expires.c>
	ExpiresActive on
	ExpiresByType image/jpeg "access plus 3 day"
	ExpiresByType image/gif "access plus 3 day"
</IfModule>

.htpasswd

stmd:$apr1$wFyRAMN6$/Ezh/e1B5HMydewiyebj8/

.gitignore

/bitrix/
/.htaccess
/.htpasswd

# User uploads
/upload/*
!/upload/.gitkeep
/sitemap/*
!/sitemap/.gitkeep

# Ignore Mac DS_Store files
.DS_Store

# Composer
/vendor/
/composer.phar
/.idea/*
/.idea

/sitemap*
/*.txt
/test.php

/google*
/yandex*

# Alias
/bitrix
/upload

Last updated