【问题标题】:IIRF url rewriting with IIS 6使用 IIS 6 重写 IIRF url
【发布时间】:2015-06-06 15:30:22
【问题描述】:

我想重写这个网址:

“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 错误,我不知道为什么。 任何帮助将不胜感激!

【问题讨论】:

  • 我很困惑:RewriteCond 是 apache,但你想要 IIS 的答案?
  • 我使用 iirf 重写我的 url,它使用相同的语法。 iirf 是 IIS 的扩展

标签: php url-rewriting iis-6 iirf


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-07
    • 2012-07-03
    • 2011-12-04
    • 2011-02-12
    • 2010-10-07
    • 1970-01-01
    相关资源
    最近更新 更多