Установка yii2 advanced
Скачиваем с сайта http://www.yiiframework.com/download/ -
Копируем на сервер в root папку.
Заходим через SSH в папку сайта. Выполняем команду
Выбираем 0.
Далее YES
Файлы index.php добавились
Далее надо убрать путь /fronend/web/
Здесь детально описанно
1- Create .htaccess file on the root directory with this content
2- Create .htaccess file in frontend/web with the below contents
813
0
Копируем на сервер в root папку.
Заходим через SSH в папку сайта. Выполняем команду
php init
[0] Development
[1] Production
Your choice [0-1, or "q" to quit] 0
Выбираем 0.
Далее YES
Файлы index.php добавились
Далее надо убрать путь /fronend/web/
Здесь детально описанно
1- Create .htaccess file on the root directory with this content
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ frontend/web/$1 [L]
</IfModule>
# Deny accessing below extensions
<Files ~ "(.json|.lock|.git)">
Order allow,deny
Deny from all
</Files>
# Deny accessing dot files
RewriteRule (^\.|/\.) - [F]
2- Create .htaccess file in frontend/web with the below contents
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
Comments