【发布时间】:2017-03-07 12:27:37
【问题描述】:
我已经从 .htaccess 文件中导入了重写规则:
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ appname/index.php?/$1 [L]
但是,当我请求 http://appname/page/param 时,它会被重写为 http://appname/appname/page/param。 在 IIS 管理器重写规则中,它显示“在 /appname 之后输入 URL 路径”。在我看来它应该是“/之后的输入URL路径”,但我不知道如何更改。有人可以帮忙吗?
【问题讨论】:
标签: mod-rewrite iis url-rewriting iis-8.5