Server deleting .htaccess file

Welcome to our community

Be apart of something great, join today!

MilenaDok

Newbie
Messages
4
Reaction score
0
Points
1
Hello,

I have a website in a subdirectory. Before, I had a .htaccess file in there, but now, the server keeps the .htaccess file but deletes the contents.

any suggestions?

Thanks
 
  • Advertisement
  • cortez

    Newbie
    Messages
    22
    Reaction score
    1
    Points
    3
    This sounds strange. You may wish to contact your hosting provider about this. In the meantime, try deleting the file, FTP it up again, then change permissions to 0444. The server won't have modified permissions then.
     
    Messages
    8
    Reaction score
    0
    Points
    1
    You can contact your hosting provider to set the attribute on .htaccess file which wont modify your htaccess file

    chattr +a .htaccess
     
  • Advertisement
  • Advertisement

    Top