Hello I am new to wordpress, our website was down (due to plugin update) I was not even able to access the admin panel due to this, so I went to the directory and copied from our staging directory (the only working directory) to the public_html directory (Production Directory). This did fix access to the website but now when I access the website the home page is referencing the correct directory (non staging) but when I navigate to any tabs I am re-routed to the staging site (staging directory) which I do not want. Does anyone know how to fix this in order to stop the public html from redirecting to the staging html?
Check your production site's
wp-config.php file for one or both of these lines:
define( 'WP_HOME', 'https://example.com' ); define( 'WP_SITEURL', 'https://example.com' );
...and set them as appropriate if they exist.
These constants will override the settings in the database if they're present. See Editing
wp-config.php for details.