Thank you for your response and the suggestions! I also found this topic: Redirects from www pages to index.php and I have the impression that moving the redirect code to the beginning of the .htaccess
file has also helped in my case.
Thanks again for pointing me in the right direction!