Staging site URL redirected to the Live site

I created a staging site. When I access the staging site, it redirects to my live site. What should I do? I am aware that somebody asked this question before. I have read through the answers but I still don’t understand what I should do. Actually all I need to do is to redesign 1 page (frontpage) using a different theme. Is there an easier solution other than staging?

Go to your wp-config file, you will probably see two lines similar to this
define(‘WP_SITEURL’, ‘https:// LIVE SITE URL’);
define(‘WP_HOME’, ‘https:// LIVE SITE URL’);

Edit both lines to show the staging URL, then save.