将wordpress站点从子文件夹迁移到根文件夹时出错

时间:2013-09-19 23:50:54

标签: php wordpress

这是我在完成http://wp.smashingmagazine.com/2013/04/08/moving-wordpress-website/

中的步骤后在浏览器中看到的内容

警告:输入中出现意外字符:第17行/home4/brycepj/public_html/index.php中的'''(ASCII = 39)状态= 1

解析错误:语法错误,意外'。'在第17行的/home4/brycepj/public_html/index.php中

以下是相关文件中的代码:

<?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 ('./dev/wp-blog-header.php);

我错过了什么?提前谢谢!

1 个答案:

答案 0 :(得分:0)

想出来!只是在wp-blog-header.php之后错过了一个撇号---如果你正在使用Smashing Magazine的教程,这就是你的问题。我直接从他们的帖子复制并粘贴。

相关问题