【发布时间】:2014-08-28 18:30:23
【问题描述】:
无论我如何尝试,我仍然无法让 web.config 文件正常工作,它仍然不会重定向到其他页面。我正在使用 codeigniter 并将应用程序托管在 IIS 平台中,这是我的 .htaccess 文件,请问有人可以将此代码转换为 web.config 吗?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /travel/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
【问题讨论】:
标签: php .htaccess codeigniter mod-rewrite iis