При перенос сайт на VDS - хостинг выводиться ошибка:
Код: Выделить всё
Not Found (#404)
Страница не найдена.
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.
© My Company 2019
Работает на Yii Framework
Код: Выделить всё
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(web)
RewriteRule ^assets/(.*)$ /web/assets/$1 [L]
RewriteRule ^css/(.*)$ /web/css/$1 [L]
RewriteRule ^fonts/(.*)$ /web/fonts/$1 [L]
RewriteRule ^js/(.*)$ /web/js/$1 [L]
RewriteRule ^images/(.*)$ web/images/$1 [L]
RewriteRule (.*) /web/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /web/index.php
Код: Выделить всё
Order Allow,Deny
Allow from all
AddDefaultCharset utf-8
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Код: Выделить всё
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'T-zA59xcCZGHdHvTYKSF4-5RU0YUYVua',
'baseUrl' => '',
],
'cache' => [
'class' => 'yii\caching\FileCache',
],
'user' => [
'identityClass' => 'app\models\User',
'enableAutoLogin' => true,
],
'errorHandler' => [
'errorAction' => 'site/error',
],
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => true,
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'db' => $db,
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
],
],
Код: Выделить всё
Index of /
[ICO] Name Last modified Size Description
[ ] LICENSE.md 2019-01-17 08:58 1.6K
[ ] README.md 2019-01-17 08:58 7.2K
[ ] Vagrantfile 2019-01-17 08:58 2.6K
[DIR] assets/ 2019-01-17 08:58 -
[ ] codeception.yml 2019-01-17 08:58 814
[DIR] commands/ 2019-01-17 08:58 -
[ ] composer.json 2019-01-17 08:58 2.1K
[ ] composer.lock 2019-01-17 08:58 117K
[DIR] config/ 2019-01-17 08:58 -
[DIR] controllers/ 2019-01-17 08:58 -
[DIR] database/ 2019-01-17 08:58 -
[ ] docker-compose.yml 2019-01-17 08:58 205
[DIR] domains_cron/ 2019-01-17 08:58 -
[DIR] mail/ 2019-01-17 08:58 -
[DIR] models/ 2019-01-17 08:58 -
[DIR] modules/ 2019-01-17 08:58 -
[ ] requirements.php 2019-01-17 08:58 5.6K
[DIR] runtime/ 2019-01-17 08:58 -
[DIR] tests/ 2019-01-17 08:58 -
[DIR] vagrant/ 2019-01-17 08:58 -
[DIR] vendor/ 2019-01-17 08:58 -
[DIR] views/ 2019-01-17 08:58 -
[DIR] web/ 2019-01-17 08:58 -
[DIR] widgets/ 2019-01-17 08:58 -
[ ] yii 2019-01-17 08:58 553
[ ] yii.bat 2019-01-17 08:58 515
Код: Выделить всё
Not Found (#404)
Страница не найдена.
The above error occurred while the Web server was processing your request.
Please contact us if you think this is a server error. Thank you.
© My Company 2019
Работает на Yii Framework
Спасибо.