I accidentally deleted all the files in the main folder on my page, including the htdocs folder and the .htaccess file, the problem is that there is no way to recreate these files, It only allows you to recreate the htdocs folder but not the redirection file
What is this “redirection file” you are referring to?
If you’re referring to the main .htaccess file, it’s true that you cannot recreate it, but it will also not affect the functionality of your website. The only things in there are some changes to the default error pages, and configuration for directory indexes that should be mostly irrelevant.