Modify rewrite rule that strips .html from urls to ad trailing slash

DK,

Isn’t that why I need the RewriteBase in the .htaccess, to tell WP where it is located? Because this only happens when RewriteBase is removed and a redirect happens. Everything else with WP and the permalinks for post/pages works just fine.

But still, RewriteBase or not, RewriteRule ^(.+).html(/.+)$ $1$2 [R=301,L] only removes embedded .html and not the .html at the end. Exact same conditions but using RewriteRule ^([^.]+).html([^.]*) $1$2 [R=301,L] rewrites both embedded and ending .html. Wouldn’t that imply that it is the RewriteRule rather then my virtual host config?

Best regards,
A