Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

wp_config

For example.com

<?php
/**
 * Custom WordPress configurations on "wp-config.php" file.
 *
 * This file has the following configurations: MySQL settings, Table Prefix, Secret Keys, WordPress Language, ABSPATH and more.
 * For more information visit {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php} Codex page.
 * Created using {@link https://generatewp.com/wp-config/ wp-config.php File Generator} on GenerateWP.com.
 *
 * @package WordPress
 * @generator GenerateWP.com
 */


/* MySQL settings */
define( 'DB_NAME',     'database_name_here' );
define( 'DB_USER',     'username_here' );
define( 'DB_PASSWORD', 'password_here' );
define( 'DB_HOST',     'localhost' );
define( 'DB_CHARSET',  'utf8mb4' );
define( 'DB_COLLATE',  'utf8mb4_unicode_ci' );


/* MySQL database table prefix. */
$table_prefix = 'wp_';


/* Authentication Unique Keys and Salts. */
define('AUTH_KEY',         '2d%hADP~/~{!nucF+Q~/*(Oc{uySbCl@3(cE|%+X/-65Qzl6jaaPt:^l+YW{X3?U');
define('SECURE_AUTH_KEY',  '%7iT^rtwK16z!Enw7N|TSIDmD|`vfTtqnb_!}JB$EEh=2+2?5<isN+lA>5za3.M>d kO8+zg6I)s+T]s,)p.#Q9+C)fH3q,uF:');
define('SECURE_AUTH_SALT', '.2;lKpf95 N?PLq!)uTu>;ZM8Cr');
define('LOGGED_IN_SALT',   '.4MLr2$jey20J$XDfa+1}afZV&y|w0#I*tFP%&ijD]xDKq_vr>fmLw(y94CHJ6Q,');
define('NONCE_SALT',       'MWv*vzD]/;$=aQbF1^gt+J`N1L]$%7d%N(`}VFG-*L{x#yF-Rc5+<+&bcfo9Z[`/');


/* SSL */
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );


/* Custom WordPress URL. */
define( 'WP_SITEURL',     'http://www.example.com' );
define( 'WP_HOME',        'http://www.example.com' );
define( 'WP_CONTENT_URL', 'http://www.example.com/wp-content' );
define( 'UPLOADS',        'http://www.example.com/wp-content/uploads' );
define( 'WP_PLUGIN_URL',  'http://www.example.com/wp-content/plugins' );
define( 'COOKIE_DOMAIN',  'example.com' );


/* AutoSave Interval. */
define( 'AUTOSAVE_INTERVAL', '90' );
/* Media Trash. */
define( 'MEDIA_TRASH', true );
/* Trash Days. */
define( 'EMPTY_TRASH_DAYS', '61' );


/* Multisite. */
define( 'WP_ALLOW_MULTISITE', false );


/* WordPress debug mode for developers. */
define( 'WP_DEBUG',         false );
define( 'WP_DEBUG_LOG',     false );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG',     false );
define( 'SAVEQUERIES',      false );


/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '500M' );


/* WordPress Cache */
define( 'WP_CACHE', true );


/* Compression */
define( 'COMPRESS_CSS',        true );
define( 'COMPRESS_SCRIPTS',    true );
define( 'CONCATENATE_SCRIPTS', true );
define( 'ENFORCE_GZIP',        true );


/* FTP */
define( 'FTP_USER', 'FTPUserName' );
define( 'FTP_PASS', 'FTPpassword' );
define( 'FTP_HOST', 'ftp.example.com' );
define( 'FTP_SSL', true );


/* CRON */
define( 'DISABLE_WP_CRON',      'false' );
define( 'ALTERNATE_WP_CRON',    'false' );


/* Updates */
define( 'WP_AUTO_UPDATE_CORE', true );
define( 'DISALLOW_FILE_MODS', true );
define( 'DISALLOW_FILE_EDIT', true );


/* Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
	define('ABSPATH', dirname(__FILE__) . '/');

/* Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');