# Issue with .htaccess File Disappearing Automatically

**URL:** <https://forum.infinityfree.com/t/issue-with-htaccess-file-disappearing-automatically/106934>\
**Category:** Hosting Support\
**Created:** [March 6, 2025, 3:55pm UTC](https://forum.infinityfree.com/t/issue-with-htaccess-file-disappearing-automatically/106934 "2025-03-06T15:55:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [March 6, 2025, 4:04pm UTC](https://forum.infinityfree.com/t/issue-with-htaccess-file-disappearing-automatically/106934/2 "2025-03-06T16:04:10Z")

</div>

> [@Why are my files deleted after uploading them](https://forum.infinityfree.com/t/why-are-my-files-deleted-after-uploading-them/49310):
>
> Sometimes, when you upload a file, the upload is completed but the file is deleted immediately afterwards. This is usually caused by one of the following issues: The file is not in a htdocs folder All websites files must be uploaded to either the main htdocs folder, or to the domain specific htdocs folder (like example.com/htdocs). You cannot upload files to other directories on your account. If you try to create or upload files anywhere else, they will be deleted automatically. The file type…

---

_[View the full topic](https://forum.infinityfree.com/t/issue-with-htaccess-file-disappearing-automatically/106934)._
