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


Error when migrating wordpress site from subfolder to root folder

这是我在浏览器中看到的,在完成 http://wp.smashingmagazine.com/2013/04/08/moving-wordpress-website/

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

解析错误:语法错误,第 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);

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

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