Deleted .htaccess by mistake

Website URL

http://samogonovfamily.rf.gd/

My problem & Error Message

While trying to add a new file .htaccess, I can’t do it though Filezilla client or MonstaFTP. After making any changes in htdocs folder, it can’t get saved and the window appears showing me "Error during FTP download, file not found: “/.htaccess”.

Screenshot

image

Try using desktop FTP software like FileZilla.

1 Like

I was using it, I’m trying to create .htaccess through FileZilla desktop, it goes to failed transfers and shows me this:

it seems odd to me that the transfer of .htaccess file is located in AppData/Temp…
this may be the source of the error

try saving the .htaccess file to Desktop and transfer from there

I did a transfer from Desktop and it seems to be a successful transfer, it appears for a second in the / folder (not htdocs), and then disappears.

ah ! sorry I read your first post with my eyes closed
you cannot upload files to / only to /htdocs onwards

I wouldn’t worry about the missing /.htaccess as it shouldn’t cause any issues

it only contained some settings for default index and error pages, I think the hosting works fine without it

#
# DO NOT EDIT THIS FILE
#
# Create a new .htaccess file in your htdocs
# directory (or example.com/htdocs/ directory)
# to add your own rules or override these rules.
#
##################################################


DirectoryIndex index.php index.html index.htm index2.html

ErrorDocument 403 https://errors.infinityfree.net/403/
ErrorDocument 404 https://errors.infinityfree.net/errors/404/
ErrorDocument 500 https://errors.infinityfree.net/errors/500/

im going to test that theory right now, one moment…

3 Likes

@Z3noXXX yeah everything still works without the /.htaccess

server still looks for index.php index.html and index2.html

error pages still work (I tested 404, 403)

you could always recreate the default .htaccess in /htdocs if you wish but it looks like it isn’t necessary

2 Likes

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