how to host website on one server and webapp on another

magick

Active Member
Oct 2, 2021
38
3
8
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
2,015
539
493
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
2,015
539
493
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.