Я переместил свой сайт в другой домен и сделал все шаги правильно, но теперь у меня есть код 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' );
Любой совет, пожалуйста.