- Plesk Onyx for Linux
.htaccess file for domain example.com restores after any modification or removal.
1. The file is generated by CMS used on the website.
2. The file is added by website code if the server was hacked.
1. Check if directives were added by the CMS used on the website.
2. If the server was hacked, check the following article: What to do if the server was hacked?
Note: Plesk does not generate .htaccess files by default.