I've been trying to create a dummy duplicate of a custom-built WP/WooCommerce Site on the same server.
I've successfully moved the files to a subdomain and created a temp DB copy and updated the wp_config file, but I cannot for the life of me figure out how to set the ABSPATH value to reflect the subdomain instead of the main (non-test) domain. So now when you log in to the dummy WP site, it logs into the WP dashboard of the MAIN site.
**So my question is how do I change the ABSPATH value for the dummy site and will that also update the dummy URLs to point to the site URLs?
The main site URL is ldtuttle.com and the dummy site is dev.tuttle.com.
Thanks in advance for your time, Lisa
There are two values in the 'wp_options' database table you need to change, 'siteurl' and 'home'.
This will tell Wordpress where to redirect a user for the login screen, and is normally filled out automatically when Wordpress initially creates the database on a domain.