Wordpress Settings

Below you will find instructions on configuring your WordPress project to work with Docksal.

DB Connection Settings

Update the DB settings in wp-config.php as follows:

define( 'DB_NAME', getenv('MYSQL_DATABASE') );
define( 'DB_USER', getenv('MYSQL_USER') );
define( 'DB_PASSWORD', getenv('MYSQL_PASSWORD') );
define( 'DB_HOST', getenv('MYSQL_HOST') );

WordPress Multisite Settings

When converting a single site to a multi-site, there can be some issues that occur with redirect loops. Make sure to update the .htaccess instructions found on the WordPress.org site. Htaccess settings for WordPress multisite.