xmbillion 发表于 2020-8-5 18:13:51

【已回复】windows api伪静态处理故障

你好 ,
windows环境下使用api操作伪静态 保存失败。    根据web 查看的接口操作   使用自带的 bt面板可以保存。
我们自己调试对接api接口 就一直保存失败。
使用的接口参数是 SetSiteRewrite

沐沐 发表于 2020-8-6 09:06:13

请提供详细错误日志

xmbillion 发表于 2020-8-6 11:10:28

沐沐 发表于 2020-8-6 09:06
请提供详细错误日志

没有报错日志。 就是根据官网的接口操作的api
面板可以正常操作我们使用api来进行操作就是无法报错。

xmbillion 发表于 2020-8-13 17:08:00

沐沐 发表于 2020-8-6 09:06
请提供详细错误日志

这个是 发送的数据
一直提交
["siteName"]=>
string(20) "test695.suhafe01.top"
["data"]=>
string(859) "    <rule name="Imported Rule 1">
   <match url="^(post[-]record[-]sort[-]author[-]page)-(+).html$" ignoreCase="false">
   <conditions logicalGrouping="MatchAll">
      <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}={R:2}" appendQueryString="false">
    </rule>
    <rule name="Imported Rule 2">
   <match url="^tag-(.+).html$" ignoreCase="false">
   <action type="Rewrite" url="index.php?tag={R:1}" appendQueryString="false">
    </rule>
    <rule name="Imported Rule 3">
   <match url="^t/page-(+).html$" ignoreCase="false">
   <action type="Rewrite" url="t/index.php?page={R:1}" appendQueryString="false">
    </rule>"
另外重定向配置文件也保存失败。
页: [1]
查看完整版本: 【已回复】windows api伪静态处理故障