Shared Hosting: Controllers in Modules not found

Hello all,

I deployed my project (based on the basic template) to shared hosting webspace. I want to access the project via an subdomain because an wordpress is running on the main domain. The folder structure is the following:

* /
** www
*** _wp
*** _project
**** web
**** runtime
**** views
**** ...
**** modules
***** testmodule
****** Module.php
****** views
****** models
****** controllers

The modules are configured like this:

    'modules' => [
        'testmodule' => [
            'class' => 'app\modules\testmodule\Module',
        ],
    ],

The UrlManager is configured like this:

[
	'showScriptName' => false,
	'enablePrettyUrl' => true,
	'enableStrictParsing' => false,
	'rules' => array(
		'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
		'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
		'<module:\w+>/<controller:\w+>/<action:\w+>/<id:\d+>' => '<module>/<controller>/<action>',
		'<module:\w+>/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>'
	),
];

The .htaccess file in the _project\web looks like this:

Options +FollowSymLinks
IndexIgnore */*

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /index.php? [L]

In the _project folder I do not have an .htaccess file.

On my local machine everything is working fine. On my webspace the controllers of the project itself are working fine. As soon as I navigate in a module i get an 404 Error of the yii framework. I debugged the project and found out that the module itself is loaded correctly. The problem is that the framework can not find the Controller Class because the function class_exists(controller) returns false. I don’t have an idea what i can do to fix this. Hopefully somesone here can help me, thanks a lot!

Update

I forgot to mention that the subdomain refers to _project/web

Are you getting any errors un your Apache log? Can you access the routes with index.php?r=controller/action