(The .htaccess file has been automatically deleted from my site and I do not know why and when I try to open my site is not fully opened and error 404 appears)
I installed it automatically via Softaculous app installer and I was working on my site as well and the site continued with me for about a month but suddenly I am working on it there was a 404 error and when I checked all the site files existed until the file wp-admin the only file that was deleted is .htaccess, and it seems that the wp-admin file did not appear on the site is that I use the hide my wp so I will delete this plug-in via File Manager .
Well, I deleted the plug-in, and I accessed the WordPress control panel Thank you, my site is back to normal, but I wonder if I can restore the .htaccess file.
If you’re looking to recreate the WordPress .htaccess, you can easily create a new file with the file manager with the name .htaccess, and paste the contents of the WordPress htaccess snippet into it: