问:老师我的网站gzqhpz.net 里面做了一个子站,gzqhpz.net/sxjl ;怎么把子站的静态化代码添加到web.config文件里面;因为我一添加主站gzqhpz.net 就打不开了;麻烦老师帮我添加一下,子站静态化代码如下↓
<?xml version=\”1.0\” encoding=\”UTF-8\”?><configuration> <system.webServer> <rewrite> <rules> <rule name=\”/sxjl/ Z-BlogPHP Imported Rule\” stopProcessing=\”true\”> <match url=\”^.*?\” ignoreCase=\”false\” /> <conditions logicalGrouping=\”MatchAll\”> <add input=\”{REQUEST_FILENAME}\” matchType=\”IsFile\” negate=\”true\” /> <add input=\”{REQUEST_FILENAME}\” matchType=\”IsDirectory\” negate=\”true\” /> </conditions> <action type=\”Rewrite\” url=\”index.php/{R:0}\” /> </rule> <rule name=\”/sxjl/ Z-BlogPHP Imported Rule index.php\” stopProcessing=\”true\”> <match url=\”^index.php/.*?\” ignoreCase=\”false\” /> <conditions logicalGrouping=\”MatchAll\”> <add input=\”{REQUEST_FILENAME}\” matchType=\”IsFile\” /> </conditions> <action type=\”Rewrite\” url=\”index.php/{R:0}\” /> </rule> </rules> </rewrite> </system.webServer></configuration>
,老师麻麻烦帮我弄一下,谢谢
答:您好,1. 建议不同的站点放置到不同的空间中,建议重新购买一款主机放置子站,或升级空间型号至B064 支持子站型号,
2. 如需我司协助调试伪静态规则,请提交维护工单 ,【虚拟主机数据库问题】 -> 网站类问题 -> 设置伪静态/301跳转/自定义404错误会收费100元协助调试伪静态,现在原因是您主站和下级目录中的伪静态规则有冲突导致 ,非常感谢您长期对我司的支持,谢谢!