Transfer a website from one domain to another

I have created a domain in hestiacp and started a successful worldpress website there. But now I have a new domain How to transfer my site from to ? Because creating the whole website again is not possible.

Please help as soon as possible.

Thanking You,

Yours faithfully
Chirag Nahata


1 Like

Then you’ll also have to do a search and replace in Wordpress to change the domain name in all the config and all hardcoded URLs in pages. You can use wp-cli to do this or one of the WP database search replace plugins.

I don’t want to change my main server domain but only the website that I am hosting

How ?

You want to clone the website or move it?

use UpdraftPlus Plugin bro! Easy, simple, fast

Move it

I do not have access to the admin panel. I cannot even open the site since the domain is no longer available

do you have any backups?

no, that is the thing. I didn’t backed it up

Look on the web, everything is very simple, create a website and a database, copy the wordpress folder of the old site to the new one, export and import the database, then fix it config.php (find it in the new site folder), change the name, username and password in the database.

the domain of the wordpress will not change that’s the issue

tale a dump, search and replace for the domain and import the dump.

Put your domains, and perform in the database, after the transfer of the site as I wrote above. Keep in mind the ldmyz prefix, you probably have your own wp_

UPDATE ldmyz_options SET option_value = replace(option_value, ‘’, ‘’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

UPDATE ldmyz_posts SET guid = replace(guid, ‘’,‘’);

UPDATE ldmyz_posts SET post_content = replace(post_content, ‘’, ‘’)

have you updated the domains in wp-config?

btw, I usually use the plugin ‘better search and replace’ to do this. I think that there are lots of other places to change URLs.

best of luck

Best method for a search replace is wp CLI.

sudo -u username wp search-replace “domain1.tld” “domain2.tld”

You will also have to deal with a valid ssl