Url中的项目名称后,控制器和控制器操作不起作用

时间:2020-03-28 05:36:41

标签: php yii2

我想要yii2中的localhost / projec_name / controller / controllerAction之类的url。但是如果我在URL中使用 localhost / advanced / site / about(此控制器和操作未删除),则会显示找不到对象!屏幕。

你们可以检查代码吗?我在做什么错了?

.htaccess在文件夹前端/

enter image description here

.htaccess文件夹中的Advanced /(根)

enter image description here

frontend / config / main.php

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

我知道我做错了什么。 我在文件夹frontend /中添加了.htaccess文件 现在我将其移到了前端/网络中,错误消失了。 :)

相关问题