将WordPress移至子目录并获得以下错误:
/home/content/61/11855861/html/wordpress/index.php致命错误:函数名必须是第17行中的字符串
这是我的代码:
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require $wordpress ('/wordpress/wp-blog-header.php');发布于 2013-09-30 20:01:32
你的错误就在这一行。
require $wordpress ('/wordpress/wp-blog-header.php');这不是WordPress‘index.php脚本中的默认行。$wordpress变量是未定义的,即使定义了它,也没有正确地连接它。默认的是
require('./wp-blog-header.php');发布于 2013-10-01 09:32:30
你查过这个链接了吗:
为WordPress提供自己的目录
另外:
移动WordPress
附加备注:如果您对permalinks有问题,则应将permalink设置返回给default,然后再将其返回给您自己的选择
https://stackoverflow.com/questions/19102679
复制相似问题