安装完成后,有错误: 对应的文件对应部分代码为: PHP: // try to figure out whether we are embedded (for example running from Wordpress)// on windows/apache $_SERVER['PATH_TRANSLATED'] uses "/" for directory separators,// __FILE__ has them the other way, realpath takes care of that.if (dirname(__FILE__) != dirname(realpath($_SERVER["PATH_TRANSLATED"])) && strpos($_SERVER["PATH_TRANSLATED"],"admin") === false) { $config["embedded"] = 1; // disable our own cruft-free urls, because the URL has already been processed // by WordPress $config["use_mod_rewrite"] = 0;} else { $config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/"; } 注释后的第一行即为 36 行,这个大概是确定重写功能。 不懂 PHP ,不知道错误的原因。 安装后的程序,的确无法使用 URL 重写! 请帮忙看看,谢谢!
将PATH_TRANSLATED 改成 SCRIPT_FILENAME看看。 因为你用的可能是apache编译的ISAP的运行方式,不是CGI的模式。。 或将php.ini搜索; cgi.fix_pathinfo=0将前面的;去掉,将0修改成1