how to host website on one server and webapp on another

magick

Member
Oct 2, 2021
22
2
3
Italy
cPanel Access Level
Reseller Owner
Hello,

I have a hosting Windows with the website in the root and a asp webapp in a subfolder (example.com/webapp). I would like to transfer the WoprdPress website to another host with cPanel, but I want to keep the webapp on the old hosting Windows. How can I do this after the change of nameserver?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,653
325
438
Finland
cPanel Access Level
Root Administrator
Create a subdomain webapp.exampe.com, pointing to the webapp directory.
When you have moved to cPanel server edit DNS:
webapp.exampe.com => Windows server IP.
 
Last edited:

quietFinn

Well-Known Member
Feb 4, 2006
1,653
325
438
Finland
cPanel Access Level
Root Administrator
A domain can't lead to 2 different places, so the only solution I can see is that either the app or WP must use a subdomain.