andrewjmead / wpsites

A CLI for quickly spinning up WordPress sites
MIT License
17 stars 1 forks source link

Restoring a backup for a different site should change the site url #30

Closed andrewjmead closed 2 weeks ago

andrewjmead commented 2 weeks ago

The site url is woocommerce.test. I restored a backup that was originally created for iawp.test. The restoration process needs to change those values so links work.

Screenshot 2024-11-04

andrewjmead commented 2 weeks ago

The old database name is stored in wp-config.php. That will also need to change.

define( 'DB_NAME', 'iawp' );