Skip to content

Instantly share code, notes, and snippets.

@sitebuilderone
Forked from Thomas-A-Reinert/wp-config.php
Last active July 8, 2017 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sitebuilderone/033d97a314bef7af6ec87ba73db96a28 to your computer and use it in GitHub Desktop.
Save sitebuilderone/033d97a314bef7af6ec87ba73db96a28 to your computer and use it in GitHub Desktop.
Optimized wp-config.php
<?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 http://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' );
/* MySQL database table prefix. */
$table_prefix = 'random-prefix_';
define( 'CUSTOM_USER_TABLE', $table_prefix . 'random-user-table' );
define( 'CUSTOM_USER_META_TABLE', $table_prefix . 'random-meta-table' );
/* Authentication Unique Keys and Salts. */
define('AUTH_KEY', ']8V,I>nRmD*l&,>(PZWl4/sWCdqw.-[dqwXLf=M+@z|GiB k|_9#8|#%;-.BJ');
define('SECURE_AUTH_KEY', 'M;~UB19u+_T[@Qm_fsL;SI!nW? }KHPNSQzF^EP`rERY9*m|f5*+cCqsvwF6ea*o');
define('LOGGED_IN_KEY', 'nPkHLpskd&SNz_/@Aiebrms#,0+HKE K}m7/Q*Bql/zXoO@|8#sq09c?v7|R1R|h');
define('NONCE_KEY', 'HF6=3k:|V-5wbH>XQ_.(Qx!)(S{A][q]ai?MpW P.vOdsx2heR{XC/_|hy*b}v');
define('LOGGED_IN_SALT', '}bL|I0Vsx8.~]rNL=o)L|0-Pfo,dcYo9jvV^%B-(8=d5K-x@+X_QYi/F+p_[YlyG');
define('NONCE_SALT', 'DFYB-6NdaDU!L^FI$Cg/m3QB%oIZOEZ]f/_D.Hz%sq~-uJU?wJLhb{q=xu8GflQ/');
/* SSL */
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );
/* Custom WordPress URL. */
define( 'WP_SITEURL', 'http://example.com' );
define( 'WP_HOME', 'http://example.com' );
define( 'WP_CONTENT_URL', 'http://example.com/content' );
define( 'UPLOADS', 'http://example.com/uploads' );
define( 'WP_PLUGIN_URL', 'http://example.com/plugins' );
/* Specify maximum number of post revisions. */
define( 'WP_POST_REVISIONS', '5' );
/* Auto save in seconds */
define('AUTOSAVE_INTERVAL', 120);
/* Media Trash. */
define( 'MEDIA_TRASH', true );
/* empty trash weekly */
define('EMPTY_TRASH_DAYS', 7);
/* WordPress debug mode for developers. */
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
/* PHP Memory */
define( 'WP_MEMORY_LIMIT', '64M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
/* WordPress Cache */
define( 'WP_CACHE', true );
/* Compression */
define( 'COMPRESS_CSS', true );
define( 'COMPRESS_SCRIPTS', true );
define( 'CONCATENATE_SCRIPTS', true );
define( 'ENFORCE_GZIP', true );
/* Updates */
define( 'WP_AUTO_UPDATE_CORE', 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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment