Lost files while editing

Website URL

(https://qlbvbvadnoitonghop.42web.io/)

Error Message

While I was editing a file .htaccess , after saving the file suddenly disappeared for unknown reasons. I never deleted it

Hi and welcome to the forum!

Is the .htaccess file 10 kBs or more after editing? Is that file saved in your htdocs or outside? If the former you might need to remove some superfluous lines that might not be needed for your website to work and for the file to be saved without getting deleted; if the latter the first path is the one where you have to create that file.

4 Likes

Is the .htaccess file 10 kBs or more after editing? No
Is that file saved in your htdocs or outside? file saved in your htdocs
After editing the file suddenly disappeared and could not be found in the file manager

Are you attempting to remove the ?i=1? That rule seems to be blocked some time ago.

2 Likes

What is the size of your .htaccess file exactly? Depending on how the numbers are rounded, a file that may be shown as 9.5 kB on some systems may handled as being over 10 kB on other systems.

Are there any specific changes you make that trigger the deletion? Does your .htaccess file also get deleted if you only include the top half or bottom half of the file?

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.