My htaccess file is gone after uploading.
I see it there for a minute or then it's gone. Even cPanel File Manager shows the same thing.
Any idea how to fix it? The web host says the problem is on my end.
Webmasters Stack Exchange is a question and answer site for pro webmasters. It only takes a minute to sign up.Sign up to join this community
Even cPanel File Manager shows the same thing.
In the popup dialog that opens before getting to the file manager itself you need to make sure that "Show Hidden Files (dotfiles)" is checked.
Unfortunately, if you've previously checked "Skip this question" or you simply don't get this option then a similar option does not seem to be available in the file manager itself. In this case it seems you will need to manually edit the URL as @PeterBishop suggests. Although you can still "search" for
.htaccess and see it listed in the search results you still can't edit it.
Login to cPanel and use its File Manager to observe the directory contents. I am uncertain that your .htaccess file is still there. Many FTP clients need you to tie a setting to show all documents, otherwise they hide things like .htaccess. I think that may be what's in with your FTP client software.
Some hosts have the server set up to not display the .htaccess file for safety details. You can still upload it and it will work, but you can’t download it or view it. Perhaps you could test the existence of the file by putting something in it that would be noticeable if it was working - like a password. If the changes are taking affect then the file is truly present - just not on display via ftp.
In my experience the File Manager in cPanel usually fails to show weather .htaccess and similar files are currently on the FTP partition so I wouldn't rely on it. Instead connect using something like FileZilla and see if it's there.
If the file is actually being deleted, then my first though would be to check if there are any scripts running on the server that deal with .htaccess files, for instance a wordpress plug-in that promises SEO boosts by tweaking the site etc...