Wordpress 如何在iis server 8.0中使用web.config从url中删除index.php?
我已经在iis服务器版本8.0中安装了wordpress。我在wordpress permalinks中添加了自定义结构。服务器不支持永久链接。所以我创建了web.config来从url中删除index.php。我无法删除index.php。在根网站中,我有web.config文件。我创建了另一个配置文件,以从子文件夹的url中删除index.php。它不起作用。是否有任何解决方案来删除它 网站网址: 到 网址: 博客文件夹中的代码:Wordpress 如何在iis server 8.0中使用web.config从url中删除index.php?,wordpress,web-config,iis-8,Wordpress,Web Config,Iis 8,我已经在iis服务器版本8.0中安装了wordpress。我在wordpress permalinks中添加了自定义结构。服务器不支持永久链接。所以我创建了web.config来从url中删除index.php。我无法删除index.php。在根网站中,我有web.config文件。我创建了另一个配置文件,以从子文件夹的url中删除index.php。它不起作用。是否有任何解决方案来删除它 网站网址: 到 网址: 博客文件夹中的代码: <?xml version="1.0" encodin
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="blog/index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="WPurls" enabled="true" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="blog/index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
如果可以的话。重命名index.php文件。无需删除wp内容或任何其他文件夹@rajmathan.In wp内容文件夹中的itIn。好的,我将尝试@rajmathannot working。它显示找不到404目录。