Hello, I accidentally overwrote my account root .htaccess file, outside the htdocs directory, with the one from htdocs.
I saved a backup of the htdocs file and will place it back into the corresponding directory. Could an administrator tell me how to restore the default account root .htaccess file, or restore it for me, please?
But I’ve taken a look at mine and all that’s in it is:
##################################################
#
# DO NOT EDIT THIS FILE
#
# Create a new .htaccess file in your htdocs
# directory (or example.com/htdocs/ directory)
# to add your own rules or override these rules.
#
##################################################
DirectoryIndex index.php index.html index.htm index2.html
ErrorDocument 403 https://errors.infinityfree.net/errors/403/
ErrorDocument 404 https://errors.infinityfree.net/errors/404/
ErrorDocument 500 https://errors.infinityfree.net/errors/500/
so by my reading, you should be ok to just create a new .htaccess their with this in.
I ran into an unexpected issue where it seems I’m not allowed to edit it anymore and then it just vanished on its own, and I can’t create a new one in the root.
That file doesn’t really do anything useful, so deleting it will not really cause any harm.
However, since you are not supposed to put files outside an htdocs folder you cannot recreate this file. This is unfortunate but you probably have to live with it.