我想重写这个网址:
“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 错误,我不知道为什么。任何帮助,将不胜感激!