首页 > 解决方案 > 将 codeignitor easyappointments /index.php 重定向到 /index.php/backend 页面?

问题描述

我正在easyappointments平台上做一个项目。我的代码库位于“src”文件夹下。我想重定向/src/index.php/src/index.php/backend

高度赞赏您的建议。提前致谢。

标签: .htaccesscodeigniterurlredirect

解决方案


如果后端是控制器,那么更好的方法是将路由(application/config/routes.php)中的默认控制器更改为后端

 $route['default_controller'] = "backend";

推荐阅读