我将网站移至另一个域并正确执行了所有步骤,但是现在浏览网站时我有了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( dirname( __FILE__ ) . '/wp-blog-header.php' );
如果我删除.htaccess文件内容,则会得到:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in public_html/wp-content/advanced-cache.php on line 31
Parse error: syntax error, unexpected T_STRING in public_html/wp-content/advanced-cache.php on line 31
那一行代码是:
$w3tc_redirect = \W3TC\Dispatcher::component( 'Mobile_Redirect' );
请提供任何建议。