// Настройка HTTPS для Яндекса if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { $_SERVER['HTTPS'] = 'on'; } // Проверяем, куда идет запрос: в админку или на чтение статей $req_uri = $_SERVER['REQUEST_URI']; $is_admin = (strpos($req_uri, '/wp-admin') !== false || strpos($req_uri, '/wp-login.php') !== false || strpos($req_uri, '/sanek2007-0785') !== false); // 1. Если это ВЫ заходите в ПАНЕЛЬ УПРАВЛЕНИЯ через секретный адрес: if ( $is_admin && isset($_SERVER['HTTP_HOST']) && strpos($_SERVER['HTTP_HOST'], 'baza') !== false ) { define('WP_HOME', 'https://baza.pro-voinu.ru'); define('WP_SITEURL', 'https://baza.pro-voinu.ru'); } // 2. Для ВСЕХ ОСТАЛЬНЫХ (статьи, фронтенд, посетители, SEO) - ЖЕСТКО основной домен: else { define('WP_HOME', 'https://pro-voinu.ru'); define('WP_SITEURL', 'https://pro-voinu.ru'); $_SERVER['HTTP_HOST'] = 'pro-voinu.ru'; // Запрещаем загружать фронтенд по адресу baza } // 3. Картинки и скрипты ВСЕГДА грузятся с правильного домена define('WP_CONTENT_URL', 'https://pro-voinu.ru/wp-content'); define( 'ITSEC_ENCRYPTION_KEY', 'REZwTiw0Jj1pMXdlSX1IJjVKPCUmNVlFTCNQZUROJFQ1MUhQR3tsIGNTLjomUW9yZSBJWkRGVUEqYTN5ZnMuLw==' ); define( 'WP_MEMORY_LIMIT', '512M' ); /** * The base configuration for WordPress * * The wp-config.php creation script uses this file during the installation. * You don't have to use the website, you can copy this file to "wp-config.php" * and fill in the values. * * This file contains the following configurations: * * * Database settings * * Secret keys * * Database table prefix * * ABSPATH * * @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/ * * @package WordPress */ // ** Database settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', "pro_voinu_ru" ); /** Database username */ define( 'DB_USER', "pro_voinu_ru" ); /** Database password */ define( 'DB_PASSWORD', "Sanek2007@0785" ); /** Database hostname */ define( 'DB_HOST', "localhost" ); /** Database charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8mb4' ); /** The database collate type. Don't change this if in doubt. */ define( 'DB_COLLATE', '' ); /**#@+ * Authentication unique keys and salts. * * Change these to different unique phrases! You can generate these using * the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}. * You can change these at any point in time to invalidate all existing cookies. * This will force all users to have to log in again. * * @since 2.6.0 */ define( 'AUTH_KEY', 'L?`nzXuZFMX6-#;}!�zIB=732>{:O:5D3raSwFe9}*wNI^x/J;745Q`W%-0%;B' ); define( 'SECURE_AUTH_KEY', 'Dt 7d>Vj%B:V+Os{Db664TRqje;Su,^) McrOkcaw~yPOI,,W(1JarO Cc/Yd%y*Gh|pCI9[+l*`?_IF{mEnq({pUuMtIeh`wheh5g4f5JpQSU8.9sT9.' ); define( 'LOGGED_IN_SALT', ':m%&2 !a1W>r,q^)rhAVJft?HPkDfq!^o{AFXW`-UUwSajQ |da}f3oAX$6H86Ce' ); define( 'NONCE_SALT', '%JdP0f!5C8E7]> IQ$pQdebJu4ZB8E(& W;.rih<.UUBv0<#l&3nXYk;t*uh`4U6' ); /**#@-*/ /** * WordPress database table prefix. * * You can have multiple installations in one database if you give each * a unique prefix. Only numbers, letters, and underscores please! * * At the installation time, database tables are created with the specified prefix. * Changing this value after WordPress is installed will make your site think * it has not been installed. * * @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#table-prefix */ $table_prefix = 'wmy'; /** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. * * For information on other constants that can be used for debugging, * visit the documentation. * * @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/ */ define( 'WP_DEBUG', false ); /* Add any custom values between this line and the "stop editing" line. */ define( 'DUPLICATOR_AUTH_KEY', 'N(Yiw0oH9X