Config.php !!exclusive!! | Wp
define( 'WP_MEMORY_LIMIT', '256M' ); By default, WordPress saves every change you make. To save database space:
Take control of wp-config.php , and you take control of your WordPress destiny. wp config.php
Remember the golden rules:
<?php // ** Database settings - You can get this info from your web host ** // define( 'DB_NAME', 'your_database_name' ); define( 'DB_USER', 'your_database_user' ); define( 'DB_PASSWORD', 'your_database_password' ); define( 'DB_HOST', 'localhost' ); // ** Database Charset to use in creating database tables. ** // define( 'DB_CHARSET', 'utf8' ); define( 'DB_COLLATE', '' ); ** // define( 'DB_CHARSET', 'utf8' ); define( 'DB_COLLATE',
chmod 600 wp-config.php If you suspect a session hijack, regenerate your security keys instantly via the WordPress Salt Generator . Copy/paste the new output into your wp-config.php . Warning: This logs out all active users. 4. Block Direct Access via .htaccess Add this to your .htaccess file in the root directory: ** // define( 'DB_CHARSET'
Open your wp-config.php file right now. Check if debugging is still enabled (disable it on live sites!). Verify your salts are not the default "put your unique phrase here" string. And consider moving the file one directory above public_html for an instant security boost.
Whether you are a DIY blogger or a professional developer, spending an hour experimenting with wp-config.php tweaks will pay off tenfold in site speed, stability, and security.