← Back
Editing: wp-config.php
<?php define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); /** * 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', 'bitnami_wordpress' ); /** Database username */ define( 'DB_USER', 'bn_wordpress' ); /** Database password */ define( 'DB_PASSWORD', '1a879b751e60d5a25898d5a510e88fc6247b5a0f89dcb122881333626bffb52b' ); /** Database hostname */ define( 'DB_HOST', '127.0.0.1:3306' ); /** Database charset to use in creating database tables. */ define( 'DB_CHARSET', 'utf8' ); /** 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', 'm^tDt0*Bj80*?5K$@Y)pE?PDy!tc3o@VWr3InAgOQRZ<MTH2?g4XtM0zZ-[N`&Vt' ); define( 'SECURE_AUTH_KEY', 'S0,[EP,)yWu@@T>lGJC^a5)umAeXn(JEnffwXt~tJvo#<RqwkVjxmybuNo`*v*07' ); define( 'LOGGED_IN_KEY', 'TLGlQ@m|JSvTfy{QT 2iWO9i{<(DW}j[&L^VYx|$MxuAvc4|;(BJOIP:w-iNtjwS' ); define( 'NONCE_KEY', ']R#;[CaL<Yj-x%)}68^/.7K3XLca(a}EaJCu1`{k?kP:y,?l-C!`:f7FOC%n6M(}' ); define( 'AUTH_SALT', 'e@-Wr |WR@@<pI-uJsM,}%ev%y;3R-^uli^t&eLI5J.?t@u/Y}G?o,4i3&WP:AMJ' ); define( 'SECURE_AUTH_SALT', '{$d,{onU(Z|/SHvb#hHe,x,v6lc-sS(iGSiKWOACzmJs=y}F3HNES<qAu{IbT|)r' ); define( 'LOGGED_IN_SALT', '-iHy7},/c:^V9:oQJ!.V!NM5bpP;-9YCV-Y<7L7p_[JjDSgy2s3-`NRWw;XK&O?;' ); define( 'NONCE_SALT', '(~}dspj!{t&|;1wHRT~kKM:J .;AD<xn4D8@]! b}^h!=9+{xtePy38W/+6z251P' ); /**#@-*/ /** * 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 = 'wp_'; /** * 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 ); define( 'WP_CACHE', true ); // Added by WP Rocket /* Add any custom values between this line and the "stop editing" line. */ define( 'FS_METHOD', 'direct' ); /** * The WP_SITEURL and WP_HOME options are configured to access from any hostname or IP address. * If you want to access only from an specific domain, you can modify them. For example: * define('WP_HOME','http://example.com'); * define('WP_SITEURL','http://example.com'); * */ // if ( defined( 'WP_CLI' ) ) { // $_SERVER['HTTP_HOST'] = '127.0.0.1'; // } // define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); // define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_AUTO_UPDATE_CORE', 'minor' ); define('WP_REDIS_HOST', '127.0.0.1'); define('WP_REDIS_PORT', 6379); define('WP_REDIS_TIMEOUT', 1); define('WP_REDIS_READ_TIMEOUT', 1); define('WP_REDIS_DATABASE', 0); /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ /** Force HTTPS + redirect IP to domain **/ if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] === "https") { $_SERVER["HTTPS"] = "on"; } if (filter_var($_SERVER["HTTP_HOST"], FILTER_VALIDATE_IP)) { header("Location: https://imberconstruction.com" . $_SERVER["REQUEST_URI"], true, 301); exit; } define( "WP_HOME", "https://imberconstruction.com" ); define( "WP_SITEURL", "https://imberconstruction.com" ); require_once ABSPATH . 'wp-settings.php'; /** * Disable pingback.ping xmlrpc method to prevent WordPress from participating in DDoS attacks * More info at: https://docs.bitnami.com/general/apps/wordpress/troubleshooting/xmlrpc-and-pingback/ */ if ( !defined( 'WP_CLI' ) ) { // remove x-pingback HTTP header add_filter("wp_headers", function($headers) { unset($headers["X-Pingback"]); return $headers; }); // disable pingbacks add_filter( "xmlrpc_methods", function( $methods ) { unset( $methods["pingback.ping"] ); return $methods; }); }
Save File
Cancel