如何在Codeigniter中删除index.php

问题描述 投票:0回答:2

如何在 Windows 7 和 IIS 上的 codeigniter 中删除 index.php。

我在网上搜索了解决方案,但结果是基于 Apache 的重写模块,如果有人在 IIS 和 Windows 7 上工作并遇到类似情况,请对此提供帮助。

我想在 IIS 和 Windows 7 上工作,并且如果我可以在调用任何特定控制器/模块时删除 index.php。

php iis codeigniter
2个回答
2
投票

如果您在 IIS 下,可以使用 ISAPI_Rewrite


0
投票

我会推荐 IIRF(Ionic 的 ISAPI 重写过滤器),它是 IIS 的重写器,与 ISAPI_Rewrite 不同,它完全免费提供全部功能。 ISAPI_Rewrite 的精简版可能足以解决这一问题(为 CodeIgniter 删除 index.php),但 IIRF 可以做更多事情。

© www.soinside.com 2019 - 2024. All rights reserved.