I decided to move some files. I want to make a .htaccess file to redirect visitors to the new URL, but whenever I upload the .htaccess file, it’s deleted. I’ve tried uploading htaccess.txt and renaming it to .htaccess but whenever I refresh, it’s gone.

It might not really be gone - many ftp clients do not display files beginning with a “.” in their default configuration. Check you ftp client’s instruction/help for how to display hidden files. You often have to make a setting change

You can also check your directory via ssh in the shell. just use “ls -la” (enter) and see if it is displayed there.