I have some applications installed on subdomains and a wordpress multisite (that uses subdomains) on the main domain. Everything works fine, but with one issue: trying to access wpsub.example.com/app opens app.example.com (under the URL of wpsub.example.com/app) where wpsub is a site in wordpress multisite network and app is a subdomain that contains an application.
What I want (and think is more logical) is that accessing wpsub.example.com/app will open wpsub.example.com (like trying to access a non-existing folder in a website).
Are there other ways to do this than .htaccess redirect rules which require a list of all application subdomains?