0
我在子目錄上我的網絡服務器3周的WordPress安裝,一個在根文件夾,2(IIS):web.config文件中的子目錄並不在根目錄下的web.config與工作存在
/
/wp_one
/wp_two
他們都有一個web.config。如果我從根目錄中刪除web.config,那麼子wp中的URL工作得很好。如果我再次添加它,鏈接指向正確的位置,但是當您單擊時,我將重定向到根目錄上的通訊錄頁面。例如: www.site.com/wp_one/contact重定向到www.site/contact。
web.config文件的內容(他們有相同的內容):
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wp" stopProcessing="true">
<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>