6
wp-config.php Tips and tricks to optimize the most important file in WordPress! Anthony Montalbano AMBR Detroit

The wp config.php

Embed Size (px)

Citation preview

Page 1: The wp config.php

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

Anthony MontalbanoAMBR Detroit

Page 2: The wp config.php

Primary purposes of the wp-config.php file

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

Page 3: The wp config.php

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

Page 4: The wp config.php

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

Page 5: The wp config.php

Learn more about wp-config.php

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

Page 6: The wp config.php

Anthony MontalbanoPartner at AMBR Detroit

[email protected]@italianst4