我爱帮助网-手册QQ交流群

Nas交流与矿渣群(unraid 群晖 猫盘 蜗牛等):580680114         物联网/智能家居群:518812757             帮助教程:手册大全

软件使用与建站群:1057308983      虚拟化交流群:13448651

0

hdwiki互动维客系统在Php5.4以上版本使用首页空白-首页出错以及伪静态的问题

hdwiki互动维客系统在Php5.4以上版本使用首页空白-首页出错

最近将以前的百科网 (baike.office-cn.net ) 转移 到新的Windows Server 2012 R2 

程序与数据库 设置一切准备就绪 ,就打开网页就是出错,打开PHP的错误显示,以及IIS的相关错误调试


或显示  资源出错


还是没有头绪 

后来将PHP版本改为 PHP5.2 ,一切正常

原来发现 hdwiki互动维客系统在Php5.4以上版本使用会出现首页空白的问题

且没有任何相关的提示或错误。

让我调试了好几天。给相关的朋友 一个参考


另设置好后,发现明细页打不开,伪静态问题,显示以下错误

服务器错误

500 - 内部服务器错误。
您查找的资源存在问题,因而无法显示。


修改伪静态的Web.config文件为如下

 <rule name="导入的规则 1">   ’好像不能用中文名

 <rule name="rule1">


正确之后完整版本是:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="rule1">
                    <match url="^.*$" 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:0}" appendQueryString="false" />
                </rule>

            </rules>
        </rewrite>
    </system.webServer>
</configuration>