We have a WordPress site hosted in a basic cPanel environment.
I can create a duplicate of the website and use the four I think it is suggested methods to change the URL.
However I've noted in the WordPress site that there are still links in pages, posts and within the headers for font inclusion that still refer to the original URL.
I've had to previously search for every single reference to the old URL and change it to the new manually. No one talks about database modifications.
Is there anything available to completely switch everything? Changing the files and adding the define() flags is one thing. Having absolute urls in the database is another.
We have a WordPress site hosted in a basic cPanel environment.
I can create a duplicate of the website and use the four I think it is suggested methods to change the URL.
However I've noted in the WordPress site that there are still links in pages, posts and within the headers for font inclusion that still refer to the original URL.
I've had to previously search for every single reference to the old URL and change it to the new manually. No one talks about database modifications.
Is there anything available to completely switch everything? Changing the files and adding the define() flags is one thing. Having absolute urls in the database is another.
Share Improve this question asked Feb 7, 2021 at 21:10 SimonSimon 1113 bronze badges1 Answer
Reset to default 2In your new site, change the value of siteurl
.
It should be in the first row of the options table in the database.
Then you should be able to access wp-admin on the new site. Then install this plugin: Better Search Replace.