我想删除索引。我的permalink中的php。我正在使用Codeigniter网站。我已经通过了使用pretty permalink的要求:
-PHP Version 5.4.27 Codeigniter
-IIS 7.5
-URL Rewrite 2.0
-Server API: FAST CGI
之前,我删除了索引。来自codeigniter的php。我想知道wordpress webconfig文件是否与codeigniter冲突。如果您能帮助确定正确的网络配置,我们将不胜感激!
website.com/en/user => codeigniter with the controller User
website.com/blog
/apps
/system
/blog
web配置以删除CI索引。php
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RuleRemoveIndex" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="true"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
/博客=>WP应用程序
网状物WP dir上的配置
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="index.php"/>
</rule></rules>
</rewrite>
</system.webServer>
</configuration>
关于stackoverflow的相同问题:
https://stackoverflow.com/questions/29074588/wordpress-pretty-permalink-404-error-installed-on-iis-7-5