只是我有这个:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="index/page/method to index.php?page=page&method=method">
<match url="^index/([^/]+)/([^/]+)$" />
<action type="Rewrite" url="index.php?page={R:1}&method={R:2}" />
</rule>
<rule name="index/page to index.php?page=page">
<match url="^index/([^/]+)$" />
<action type="Rewrite" url="index.php?page={R:1}" />
</rule>
<rule name="index to index.php">
<match url="^index" />
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
当我调用 localhost 时,我得到以下信息: HTTP-Fehler 500.19 - Internal Server Error
我的问题是第一条规则不起作用:(当我删除第一条规则时,这些规则可以正常工作......有人可以帮助我吗?
自己编辑:IIS 不喜欢 &... 所以我把它改成&
它工作正常^^