I need to change the website domain and it's kinda messed up now. Please assist me!

vandevo

New Member
#1
Hello.

I developed a Wordpress site for my friend. I used OpenLiteSpeed on Google Cloud. Deployment, VM instance, snapshot, and all that.

I used NameCheap domain then changed its DNS to CloudFlare DNS.

Everything works well until my friend told me his domain might face a lawsuit because there is another business with the same name.

So guess what? We have to change everything now with a new domain.

So I went on NameCheap again, bought a new domain.

Then I went to Google cloud using the snapshot to create a new VM instance and use the new IP address to clone a new website (with all the old system)

Then I did all the steps again.

I also tried to create page rules in Cloudflare for the old domain to the new one. (Forwarding URLs)

But when I entered the new domains, it is said "Invalid SSL Certificate"

As I remember, when I deployed a new wordpress site, I had to go to SSH to do the "Let's Encrypt SSL" to issue a new certificate for that domain.

I wonder how I do it again? When I open SSH in the new VM instance it doesn't show that step of SSL anymore.

I am a little lost, don't know what to do.

The old domain now stops working also.

Please help me. Thank you so much!
 

vandevo

New Member
#4
Next time, you don't really need to rebuild a server for changing a domain.

That prompt script is designed for the first time set up only. To apply more cert for the same virtual host, you might want to do it manually.
https://docs.litespeedtech.com/cloud/images/wordpress/#step-3-certbot

Code:
certbot certonly --webroot -w /var/www/html/ -d example.com -d www.example.com
Thank you so much for helping

I went on SSH and pasted the certbot certonly --webroot -w /var/www/html/ -d coolexplorers.com -d www.coolexplorers.com

But it sent me this message

Screenshot 2021-08-02 at 22.33.29.png

What should I do? Should I go to do it in the Filezilla?

Please help me, master
 
Top