With Nextcloud 11 the theming app is generating custom favicons for each app, so as it is enabled by default, the path /apps/theming/favicon/files?v=7
is correct.
@dcrdev Have you been running ./occ maintenance:update:htaccess after adding htaccess.RewriteBase to your config?