Based on this code for allowing non-existing folder paths to resolve to the web root:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
..and without knowing more about apache I have come up with this...
RewriteCond %{REQUEST_URI}!^/
RewriteRule . /index.php [L]
But, it doesn't work, of course.
I want ALL subdomains xyz.domain.com, 123.domain.com and even abc.xyz.123.890.domain.com to resolve to the same webroot. I do not need folder mapping. And I would prefer that the provided URL stay in the location bar of the browser, so not a redirect.
It is a linux box, with plesk on it running php if that makes a difference.
Currently when I go to a subdomain, it takes me to the default plesk page.
Thanks for any help in advance.