如何在Wordpress中更改ABSPATH?

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.

You need to update more than Just the 'wp_options'

Also create a separate database for the- "dummy duplicate" - copy the original database there and then, update these database tables:

UPDATE wp_options SET option_value = REPLACE(option_value, 'ORIGINAL_URL', 'NEW_URL');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'ORIGINAL_URL', 'NEW_URL');
UPDATE wp_posts SET guid = REPLACE(guid, 'ORIGINAL_URL', 'NEW_URL');
UPDATE wp_posts SET post_content = REPLACE(post_content, 'ORIGINAL_URL', 'NEW_URL');

Some good articles:

http://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

And:

https://codex.wordpress.org/Moving_WordPress

See Header: Moving Directories On Your Existing Server

I just want to add one thing related to @kreeverp's comment: you should be careful about replacing the GUID value, as the WordPress Codex explains. If you are moving FROM local development TO deployment, then it is safe to change them to the deployment URL. But if you are moving from one URL to another, both of which are deployed (e.g., changing from site.com to site.org) then you do NOT want to replace the GUID value.

(I would have left this as a comment to @kreeverp, but I can't do that yet!)