How to Fix Old WordPress URL Redirecting
Login to CPanel and click phpMyAdmin under Databases.
Select the database name and open the wp_options table and edit the option_value of siteurl and home. You should rename with your new URL.
Save your changes. Visit your website to check whether the website URL changed
OR you may used below setting if you able to login to your wordpress dashboard
Changing URL Settings via Administrator Dashboard
Login to your WordPress dashboard, go to Settings and click the General
In General Settings page, replace your WordPress Address (URL) and Site Address (URL) with NEW URL
If you’ve edited anything, make sure to save your changes.
Select the database name and open the wp_options table and edit the option_value of siteurl and home. You should rename with your new URL.
Save your changes. Visit your website to check whether the website URL changed
OR you may used below setting if you able to login to your wordpress dashboard
Changing URL Settings via Administrator Dashboard
Login to your WordPress dashboard, go to Settings and click the General
In General Settings page, replace your WordPress Address (URL) and Site Address (URL) with NEW URL
If you’ve edited anything, make sure to save your changes.
Updated on: 07/01/2023
Thank you!