【问题标题】:Codeigniter and URL Rewrite on IIS 6IIS 6 上的 Codeigniter 和 URL 重写
【发布时间】:2010-12-13 11:56:49
【问题描述】:

我需要在运行 IIS 6.0 的共享主机上安装 Codeigniter。 我知道 URL 重写的问题。还有关于 Isapi Rewrite,但我无法在此主机上安装或设置任何内容。起始页运行良好,但我无法访问应用程序的任何其他控制器,我总是得到 404.. 我尝试更改$config['index_page']$config['uri_protocol'],但似乎没有任何效果.. 是否有其他方法可以在 IIS 上重写 URL?或者也许在 PHP 中? 谢谢。

【问题讨论】:

    标签: codeigniter iis-6


    【解决方案1】:

    如果无法安装 ISAPI Rewrite,请查找

    $config['enable_query_strings'] = FALSE;

    在 application/config/config.php 中并将其设置为 TRUE。这将禁用“SEO 友好”的 URL 并使用正常的查询字符串。

    【讨论】:

      猜你喜欢
      • 2011-02-12
      • 2011-04-07
      • 1970-01-01
      • 2011-12-04
      • 2012-07-03
      • 2016-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多