Getting Page Not Found error for my custom subdomain setup
This is now fixed. The dynamic path to the new templates folder was wrong:

define('CRAFT_TEMPLATES_PATH', realpath(dirname(__FILE__) . "/../templates_va").'/');