Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Best wp-config.php

Exemple d’un wp-config.php complet !

<?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' );
define( 'DB_USER',     'username' );
define( 'DB_PASSWORD', 'password' );
define( 'DB_HOST',     'localhost' );
define( 'DB_CHARSET',  'utf8mb4' );
define( 'DB_COLLATE',  'utf8_general_ci' );


/* MySQL database table prefix. */
$table_prefix = 'db_';
define( 'CUSTOM_USER_TABLE',      $table_prefix . 'db_membres' );
define( 'CUSTOM_USER_META_TABLE', $table_prefix . 'db_membres-meta' );


/* Authentication Unique Keys and Salts. */
define('AUTH_KEY',         '1|mF;R1BYsanf/#*NpE)Q2_O$*s9_6}bjuin%]5&vZ>;GZNn^]{(*5l31-T6xEh%');
define('SECURE_AUTH_KEY',  'k:a?-KBOTH1#tG*G*j8?w^)22-#.8dARlXcfH(X|Sr*_xX%^2hL^aks*j9|1f9O{');
define('LOGGED_IN_KEY',    '4Obt{4;Da^(1Sk1N{wH6JeE6[K5&%$##^Q6r5;+4Ph-{e+IQgzYh>D*jxLnG5Yi.7pmF?Ym>cp+m31=eF1R7^&$!H|=+');
define('AUTH_SALT',        'e>yV1c6<t+TKXnLf-YrN+Uk60z[-{SHHu@*3Mhds@InLZ%_hlf2jv4oPy|7M`DAd');
define('SECURE_AUTH_SALT', 'HXpL~+i:l@ud+GN`l+/Z^f');
define('LOGGED_IN_SALT',   '`0-L/Mo|(D2[B2OH3PLV6F([email protected]<PvBESG4bv%t*QRXTqfceK[m');
define('NONCE_SALT',       'EH6tW|]o8dQY|)YG`PQtDJ[%L+*oVo0/n9)Kpyh3-5xf}&/-:=k,y]q~F{hJ|$f9');


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


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


/* AutoSave Interval. */
define( 'AUTOSAVE_INTERVAL', '180' );
/* Specify maximum number of Revisions. */
define( 'WP_POST_REVISIONS', '15' );
/* Media Trash. */
define( 'MEDIA_TRASH', false );
/* Trash Days. */
define( 'EMPTY_TRASH_DAYS', '8' );


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


/* WordPress debug mode for developers. */
define( 'WP_DEBUG',         true );
define( 'WP_DEBUG_LOG',     true );
define( 'WP_DEBUG_DISPLAY', false );
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 );


/* FTP */
define( 'FTP_USER', 'FTP_Username' );
define( 'FTP_PASS', 'FTP_Password' );
define( 'FTP_HOST', 'FTP_Host' );
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', false );
define( 'DISALLOW_FILE_EDIT', false );


/* 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');