← Back
Editing: wp-config.php
<?php /** * 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', '51a440afc3e8d79742c83b480bc3c59cd6a273165ac77ddba1704ef0401ed84a' ); /** 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', 'n<4o UA3@pkyzD@<1,xYxDw2g;JY?Oz4)QavNdl4?OP7OG_a[|iNs3fCq1m0Is!}' ); define( 'SECURE_AUTH_KEY', 'B+^.+>hsv=vt^m#5oRL0_sqQ0i2Ma(A+(g}57zZB42USNB,r,`yA>U%<[<U/`Ff7' ); define( 'LOGGED_IN_KEY', 'N{<+%;~fMQ1SQG8:w,[i$)4.f:,cD9IhX>U*ib<`Sk!;q;(MCE(OLm$AIa?-Rl7A' ); define( 'NONCE_KEY', 'm<.}q$Ki4]ws|.tZ=baQI0f{x?&Aq[VFWkc7rYY;]0LLHqOVMbR`*rA;HoBlXI,d' ); define( 'AUTH_SALT', ')ywY{RQtV*)gCQ@-YRqvsf!*~W{w@=)Mb7J;wc;D70~7)P0e(sUVNwQQ.7eeI4OG' ); define( 'SECURE_AUTH_SALT', 'wNx)=@OkN=^<ytMaSN7Mh>g7i$%C#z@]kPnW3ao1mX_T{wuax{di:r6WJai,~ls' ); define( 'LOGGED_IN_SALT', 'X]bcOl=,@ta,<(24%7elxr@icIJ&|a8# -)R7su}qw+hyb@j>`aQC2h]?&:bB1oV' ); define( 'NONCE_SALT', 'YIz65Fzz=(;x5=:N=xTnSkLYcVB;PgNogYoCZWZ)wj;0vrziGY>IxheRVo3L[K_m' ); /**#@-*/ /** * 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 ); /* 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', 'https://www.westtowsondental.com/' ); define( 'WP_SITEURL', 'https://www.westtowsondental.com/' ); // // define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); // // define( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); define( 'WP_AUTO_UPDATE_CORE', 'minor' ); /* 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. */ /* Handle CloudFront HTTPS */ if ( isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"] === "https" ) { $_SERVER["HTTPS"] = "on"; $_SERVER['SERVER_PORT'] = 443; } /* Enable HSTS */ if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on") { header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload"); } /* Force canonical HTTPS domain */ define("WP_HOME", "https://westtowsondental.com"); define("WP_SITEURL", "https://westtowsondental.com"); /* Redirect IP access to domain */ if (filter_var($_SERVER["HTTP_HOST"], FILTER_VALIDATE_IP)) { header("Location: https://westtowsondental.com" . $_SERVER["REQUEST_URI"], true, 301); exit; } 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