Первая фиксация (вторая часть)
This commit is contained in:
parent
f94989c28c
commit
3f1a79de7d
|
@ -0,0 +1,4 @@
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteRule . index.php [L]
|
Binary file not shown.
After Width: | Height: | Size: 318 B |
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// NOTE: Make sure this file is not accessible when deployed to production
|
||||||
|
if (!in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1'])) {
|
||||||
|
die('You are not allowed to access this file.');
|
||||||
|
}
|
||||||
|
|
||||||
|
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||||
|
defined('YII_ENV') or define('YII_ENV', 'test');
|
||||||
|
|
||||||
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
|
||||||
|
|
||||||
|
$config = require __DIR__ . '/../config/test.php';
|
||||||
|
|
||||||
|
(new yii\web\Application($config))->run();
|
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// comment out the following two lines when deployed to production
|
||||||
|
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||||
|
defined('YII_ENV') or define('YII_ENV', 'dev');
|
||||||
|
|
||||||
|
require __DIR__ . '/../../../../vendor/autoload.php';
|
||||||
|
require __DIR__ . '/../../../../vendor/yiisoft/yii2/Yii.php';
|
||||||
|
|
||||||
|
$config = require __DIR__ . '/../config/web.php';
|
||||||
|
|
||||||
|
(new yii\web\Application($config))->run();
|
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
Reference in New Issue