我想要yii2中的localhost / projec_name / controller / controllerAction之类的url。但是如果我在URL中使用 localhost / advanced / site / about(此控制器和操作未删除),则会显示找不到对象!屏幕。
你们可以检查代码吗?我在做什么错了?
.htaccess在文件夹前端/
.htaccess文件夹中的Advanced /(根)
frontend / config / main.php
答案 0 :(得分:0)
我知道我做错了什么。 我在文件夹frontend /中添加了.htaccess文件 现在我将其移到了前端/网络中,错误消失了。 :)