Change Website URL Without Accessing the wp-admin Panel. it has many methods, if you accessing admin dashboard then On the go to Settings -> General screen in admin dashboard, there are two fields named “WordPress Address (URL)” and “Site Address (URL)”, both field change
if not access admin dashboard then go to public_html in your sever and edit wp-config file
Use the wp-config.php File to Change the Website URL
Access you public_html and find your site root folder and find wp-config.php file
Step 1
Login C-penal and go to file manager

Step – 2
Go to Your website root folder and find wp-config.php file and edit

step – 3
Add two line in wp-config.php file
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );

and Save this file, update your site url
Change Website URL Without Accessing the wp-admin Panel. Database Update methods
Use DataBase Udate Method
Step – 1
Login C-panel And go to Phpmyadmin

Step – 2
Find your Website database and open wp-option table

Step – 3
Open Wp-option after find a siteurl and home and edit both field
Add value in this field to your new website url

After value add and click go button. save your value
you can see new URL of your website running.
Read More