Local Site folder and WP Config


Can I edit or swap the WordPress wp-config file in C: Local Sites\MySite

folder, just like I do via ftp on my web host?

Without screwing up my local site and LBFW up of course?


Yup, you can swap out the wp-config.php file!

There are just two things to be aware of:

  1. Make sure that the database constants (DB_NAME, etc) remain the same
  2. There is a block (see below) that Local injects into wp-config.php for HTTPS handling. We’re working on removing the need for this but it’s still required as of writing this.
/* Inserted by Local by Flywheel. See: http://codex.wordpress.org/Administration_Over_SSL#Using_a_Reverse_Proxy */
	$_SERVER['HTTPS'] = 'on';

Great, thanks for this.


1 Like