0

我想重写这个网址:

“www.mydomain.com/myproject/index.php?function=demo”

'www.mydomain.com/myproject/home/demo'

我的 iirf.ini 文件中有这段代码:

RewriteEngine on
StatusInquiry On  /iirfSatus
RewriteLog c:\Inetpub\
RewriteLogLevel 3
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/myproject/home/(.*)$ /myproject/index.php?function=$1 [L]

当我浏览第二个链接时,我仍然收到 404 错误,我不知道为什么。任何帮助,将不胜感激!

4

1 回答 1

0

在网上搜索了一个小时后,我自己发现了问题:问题是我的 Iirf.ini 文件位于错误的文件夹中。它在 wwwroot 而不是我的项目文件夹中。现在工作正常

于 2015-06-06T19:14:13.897 回答