.htaccess - 将 codeignitor easyappointments /index.php 重定向到 /index.php/backend 页面?
问题描述
我正在easyappointments平台上做一个项目。我的代码库位于“src”文件夹下。我想重定向/src/index.php
到/src/index.php/backend
高度赞赏您的建议。提前致谢。
解决方案
如果后端是控制器,那么更好的方法是将路由(application/config/routes.php)中的默认控制器更改为后端
$route['default_controller'] = "backend";
推荐阅读
- javascript - 如何使用nodejs更改/删除测试模式并在条带中启用实时模式?
- python - Python 到 VBA:如何通过对 VBA 代码中的其他列进行分组来对列值求和?
- c# - C# 错误 cs0534:没有实现抽象成员获取 - 虽然我做到了
- python - 错误:未找到密码学==3.2.1 的匹配分布
- angular - Nx e2e 文件夹结构
- python - 从 python 中的 webElement 中查找 xpath
- flutter - 错误状态:Stream 已被收听。(useStream 不会关闭流)
- node.js - 由第 3 方服务处理身份验证时的授权代码流
- c# - 如何在 .NET Framework 4.8 中使用 accessdatabaseengine_X64 运行 Microsoft Office 版本:18.2008.12711.0?
- reactjs - 在页面索引更改后获取数据