Asp.net Ajax无法在上使用wordpress permalinks
我已经在我的windows服务器上安装了wordpress wordpress网站的子文件夹具有asp.net应用程序 我注意到将永久链接更改为wordpress默认值后 对于任何其他选项,它要求我在web.config文件中添加以下内容Asp.net Ajax无法在上使用wordpress permalinks,asp.net,ajax,wordpress,Asp.net,Ajax,Wordpress,我已经在我的windows服务器上安装了wordpress wordpress网站的子文件夹具有asp.net应用程序 我注意到将永久链接更改为wordpress默认值后 对于任何其他选项,它要求我在web.config文件中添加以下内容 <rule name="wordpress" patternSyntax="Wildcard"> <match url="*" /> <conditions> &
<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>
然而,这导致我的ajax在asp.net文件夹中失败。它给了我一个未定义的错误
有没有解决方案来修复它们?永久链接和我的ajax都可以工作
我觉得这与下面这行代码有关
<match url="*" />
由于找不到WebResource.axd和ScriptResource.axd,Ajax无法工作 这件事是我自己解决的