Htaccess IONOS

I have published my PHP site over IONOS or 1and1 hosting. In the beginning says 404 error. With a little research I discover that .htaccess files over iONOS, needs a slash at the beginning to work. Everytime I publish the site I need to RE-edit the htaccess file manually to make it work. Is any setting I can activate to put the / at the start of the pointed page?

WAPPLER htaceess

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?(?:/)?$ index.php [QSA,NC,L]

1and1 or IONOS htaccess needed

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/?(?:/)?$ /index.php [QSA,NC,L]

Like always thanks in advance.