by Domenic_S · 11y ago · 0 comments
Drupal on the other hand looks for /sites/$DOMAIN/settings.php, and there's nothing domain-specific in that file (except $base_url, which is optional). Orders of magnitude easier to deal with.
edit: and just discovered the 'guid' column on the posts table is hardcoded as the URL of the post -- the domain you're on at the time you create the content + the post ID. Seems like a nightmare for content staging on a non-prod environment.
define('WP_HOME', 'http://example.com');
define('WP_SITEURL', 'http://example.com');
wp seach-replace 'old domain' 'new domain'
Done