Exclude subfolder from WP-redirect works with html but not php files

Well localized the problem (without understanding it so far)

It was not the .htaccess file.

It was not plugins or themes (which I deactivated all to see what happens)

But my little php app had their own session handling and modified the header. Just simple textbook stuff (login etc..) which works flawless outside WP.

I didn’t analyse why this happens, but without the session/header stuff my php app works fine alongside WP.