How to change domain name after uploading to webserver?

tempelh2
30 Posts
tempelh2 posted this 28 November 2019
Ask a Question

Hi there,

Whenever a customer asks for a website relaunch we create a sandbox with a different domain name. For example, the customer runs a website at www.mysite.com and we create a webserver at mysite.sandbox.com. When we are finished with our work we want to switch the sandbox to production by simply changing the DNS A record so that the domain www.mysite.com now points to the IP address of mysite.sandbox.com.

Said that, there's the need to adjust several pointers and files in WordPress - also the content. When I run a plugin like "Better Search & Replace" on a site with approx. 500 links it only finds 50.

What has to be done for the links in Nicepage content pages and how can this be accomplished?

Thanks,
Holger

Hi there, Whenever a customer asks for a website relaunch we create a sandbox with a different domain name. For example, the customer runs a website at **www.mysite.com** and we create a webserver at **mysite.sandbox.com**. When we are finished with our work we want to switch the sandbox to production by simply changing the DNS A record so that the domain **www.mysite.com** now points to the IP address of **mysite.sandbox.com**. Said that, there's the need to adjust several pointers and files in WordPress - also the content. When I run a plugin like "Better Search & Replace" on a site with approx. 500 links it only finds 50. What has to be done for the links in Nicepage content pages and how can this be accomplished? Thanks, Holger
Vote to pay developers attention to this features or issue.
1 Reply
Order By: Standard | Newest
Support Team
Support Team posted this 29 November 2019

Hi Holger,

If you need to move the site from one domain to another, then you need to transfer the database info as well.
The easiest way to do change the domain is the following:
- create the database dump in the .sql format
- open that file in the Notepad++ (please do not use the usual Notepad version)
- change all the includes of the old domain name to the new one. Use the auto Replace function to find and replace all the domain names
- save the file
- import this database dump in the new empty database for the new domain.

Also you can use the option to unpack your site on the new domain from the start. Just use the plug-in that will hide the production site from the unauthorized users while developing the site.
...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Holger, If you need to move the site from one domain to another, then you need to transfer the database info as well. The easiest way to do change the domain is the following: - create the database dump in the .sql format - open that file in the Notepad++ (please do not use the usual Notepad version) - change all the includes of the old domain name to the new one. Use the auto Replace function to find and replace all the domain names - save the file - import this database dump in the new empty database for the new domain. Also you can use the option to unpack your site on the new domain from the start. Just use the plug-in that will hide the production site from the unauthorized users while developing the site. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments