I use subdomains for staging environments. That meant in Craft 2 I had to move the public_html folder content up a level and change
$craftPath = '../craft';
$craftPath = 'craft';
I'm getting myself in a bit of a mess how to do this for Craft 3. I've moved the contents of 'web' into the root folder for the subdomain.
I think I have to change these settings
define('CRAFT_BASE_PATH', dirname(__DIR__)); define('CRAFT_VENDOR_PATH', CRAFT_BASE_PATH.'/vendor');
but it's a bit over my head, so any help to what I change these to would be much appreciated.
My hosting doesn't allow configuring the webserver to point to the /web folder.