I get this error when im trying to go to localhost, and i want the index.php to show up. http://i.imgur.com/MwZwyfX.png
我试图去localhost时出现这个错误,我希望index.php出现。 http://i.imgur.com/MwZwyfX.png
This is my web.config
这是我的web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1">
<match url="^(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 2">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 3">
<match url="^(.*)\.htm$" />
<action type="Rewrite" url="{R:1}.php" />
</rule>
<rule name="Imported Rule 4">
<match url="^(|/)$" ignoreCase="false" />
<action type="Rewrite" url="login.php?page={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="login.php?url={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer> </configuration>
1 个解决方案
#1
0
Line 0 means you forgot to download and install IIS URL Rewrite module from Microsoft.
第0行表示您忘记从Microsoft下载并安装IIS URL重写模块。
#1
0
Line 0 means you forgot to download and install IIS URL Rewrite module from Microsoft.
第0行表示您忘记从Microsoft下载并安装IIS URL重写模块。