【发布时间】:2016-05-05 16:11:56
【问题描述】:
我想创建一个应用网址“http://example.com”。但是输入 url,它显示“HTTP Error 403.14 - Forbidden”。当我在 'http://example.com/index.php' 之类的 url 的最后插入'index.php' 时,登录页面正在浏览器中呈现 我已经改了
$config['base_url'] = 'http://example.com';
$config['index_page'] = '';
和
$config['uri_protocol'] = 'REQUEST_URI';
在 config.php 文件中。然后我将 .htaccess 文件与应用程序和系统文件夹一起放在 codeigniter 根文件夹中。然后在 .htaccess 文件中我用
编码<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我只想从 url 中删除“index.php”。我正在使用 IIS 8.5 网络服务器。
【问题讨论】:
-
你写过代码吗?如果是,请发布。
标签: php codeigniter url iis-8.5