Yii2 如何';d我在免费主机上安装Yi2 advanced

Yii2 如何';d我在免费主机上安装Yi2 advanced,yii2,hosting,cgi-bin,htdocs,Yii2,Hosting,Cgi Bin,Htdocs,通过ftp连接后,我有两个目录:htdocs和cgi-bin 我试图在htdocs中创建一个文件夹并将yii2 distributive上传到那里,但我没有通过.htaccess解决任何问题 AddDefaultCharset UTF-8 Options -Indexes Options FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_URI} ^/(subdirectory/admin) RewriteRule ^admin(\

通过ftp连接后,我有两个目录:htdocs和cgi-bin 我试图在htdocs中创建一个文件夹并将yii2 distributive上传到那里,但我没有通过.htaccess解决任何问题

AddDefaultCharset UTF-8

Options -Indexes
Options FollowSymlinks

RewriteEngine On

RewriteCond %{REQUEST_URI} ^/(subdirectory/admin)
RewriteRule ^admin(\/?.*)$ backend/web/$1 [L]

RewriteCond %{REQUEST_URI} ^/(subdirectory)
RewriteRule ^(\/?.*)$ frontend/web/$1 [L]

你能通过ssh连接吗?@Pa3Py6aka当然不能连接-)塔拉索维奇,读一下-或者直接输入htdocs并编辑你的
。htaccess
so
frontend/web/index.php
成为你的前端控制器。@marmeladze但是如果他只是输入htdocs高级项目模板,目录
frontend/web
backend/web
将不会
index.php
文件?他必须开始初始化吗?还是我弄错了。htaccess,https://www.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess.htaccess。Посмотри сам на гитхабе. Чтобы они появились нужно провести инициализацию - (первый пункт)