.htaccess deletion

I’m trying to edit htaccess but unfortunately deleted by mistake. Could any mod please assist me with this problem. Also your service doesn’t seem to allow htaccess editing?

You can’t edit the .htaccess file in your main account folder, but you can add your own .htaccess file and override any of the rules to your htdocs folder.

I can accidently deleted it, can u guys bring it back for me please. I cant seem to add it back to my file manager.

@ktrinh said:
I can accidently deleted it, can u guys bring it back for me please. I cant seem to add it back to my file manager.

You can’t bring back a deleted file, but here are the default contents. You can create a new .htaccess file in your htdocs directory with these contents:

DirectoryIndex index.php index.html index2.html

ErrorDocument 400 https://infinityfree.net/errors/400
ErrorDocument 401 https://infinityfree.net/errors/401
ErrorDocument 403 https://infinityfree.net/errors/403
ErrorDocument 404 https://infinityfree.net/errors/404
ErrorDocument 500 https://infinityfree.net/errors/500
ErrorDocument 503 https://infinityfree.net/errors/503