The wp config.php

Post on 15-Apr-2017

356 views 0 download

transcript

wp-config.phpTips and tricks to optimize the most important file in WordPress!

Anthony MontalbanoAMBR Detroit

Primary purposes of the wp-config.php file

● Database location and authentication● Site and Environment Configurations● Security Salts and Keys

Important things you should do with wp-config.php

● Autoload database info based on environments (local, staging, production)

● Enable debugging on local environment

● Disable file / plugin changes on production

● Force site URL and home URL

● Force SSL for admins and logins

More advanced things with wp-config.php

● Move the location of the themes, plugins, and/or uploads folder

● Specify max post revisions to save

● Enable WordPress Multisite (MU)

● Increase PHP memory limit

● Set number of days to save items in the trash

● Put Jetpack in debug mode

Learn more about wp-config.php

https://codex.wordpress.org/Editing_wp-config.php

Anthony MontalbanoPartner at AMBR Detroit

anthony@ambrdetroit.com@italianst4