Setup main domain to PicoCMS site and cloud domain to Nextcloud

Hi,
I created a site using PicoCMS. It’s working fine now.
My Nextcloud can be accessed with cloud.mydomain.com.
I want that to stay that way however, I want any other subdomain and my main domain to redirect to my PicoCMS site. Namecheap has a redirect domain feature and I tried setting up a redirect for wildcard (all non-existing subdomains) and for the main domain. However, adding the redirect for my main domain makes the redirect for wildcard to work and nothing else work anymore. i’m not really familiar with these stuffs so I’m not sure if I’m doing something wrong or what I want isn’t possible or at least not easily accomplished.
Thanks

Hey,
i solved a similar issue with nginx proxy manager.