Report this

What is the reason for this report?

How to reconnect with WP site after migrating from WP to Node.js backend in DO

Posted on November 27, 2020

Hi, I am hoping someone can help me with my problem. So I had a website running on wordpress, with the Cloudflare DNS and GoDaddy as the domain provider. It was live for about a month, and I decided that I wanted to run my own server on nodejs, So I created an express app in DO and updated the Cloudflare DNS to redirect the domain name to the new IP Address from Digital Ocean and now it is working fine. But our issue now is how can I access the old wordpress pages and the wordpress panel? My goal is to be able to have a separate path in the website e.g mywebsite.com/<path> which connects to the wordpress pages so that when I do mywebsite.com/<path>/wp-admin I can connect with the existing word-press pages. Any help would be appereciated



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

First of all thanks for the reply @KFSys , @Yannek Hi @KFSys, Yes but at this point, I cant even access the wp-admin of my old wp website, because my DNS has been redirected to the new Digital Ocean droplet IP Address. and when I revert it to the old WP IP address, It gives me an error instead. So Any help will be appereciated. Is it possible because I setup a new SSL certificate for the digital ocean?

@Yannek, Yes I ve tried this, and it gives me a 404 instead.

Hi @nicholasbudiharsa,

I’m not sure this is possible using the same domain name. The best way would be to migrate the WordPRess website to your DigitalOcean droplet and put it in a folder like so mywebsite.com/<path>/.

This is what I would have done. The way you are searching an answer for is impossible because your domain can load from only one IP, your Droplet’s IP or your WordPress website’s IP so you need to either move your NodeJS application to the WordPRess platform or you need to move your WordPress website to your DigitalOcean Droplet. Since the first is impossible, I’ll suggest the second option.

Regards, KFSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.