Internal Server Error: .htaccess error? after update from 28.0.4

I had the version 28.0.4 and wanted to update first to 28.0.6 or now to 29.0.4. After the upgrade i got an “Internal Server Error”. I analyzed it and found the reason:
There is in the .htaccess file a line “RewriteBase Array”.

If I remove this line nextcloud works.
This line appear again after “php occ maintenance:update:htaccess”

I found in the config.php:
‘htaccess.RewriteBase’ =>
array (
‘php8.3-cli’ =>
array (
‘./nextcloud/occ’ =>
array (
‘maintenance:update_htaccess’ => ‘/’,
),
),
),

Is this a bug or a misconfiguration at an other place?

Thanks for hints

That’s a misconfiguration. Maybe a cut-n-paste gone wrong at some point?

Makes sense it would break your .htaccess file. That parameter (htaccess.RewriteBase) is applied to the file every time the .htaccess gets generated/updated.

You likely want something more like this:

'htaccess.RewriteBase' => '/',

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#htaccess-rewritebase

Thanks, this works for me.
I don’t know, why I configured this in the config.php.
But still, I am not sure if this is a bug in the update:htaccess.
Because I think my entry is a correct syntax (may be an useless).