.htaccess file is not uploaded nor created

I have to create a .htaccess file for my site. But when i try to upload it via ftp it shows up for sometime and disappears after few seconds and same thing happen while i try it by creating a new file

Please make sure that

  • you upload the .htaccess file to a htdocs directory (files uploaded outside a htdocs directory are automatically deleted);
  • that your FTP client is configured to show hidden files (also called dotfiles);
  • and that your .htaccess file is less than 10 kB in size.

Oh i got it. My htaccess file is 11kb . And thanks for responding quickly

@Sabin_Acharya said:
Oh i got it. My htaccess file is 11kb . And thanks for responding quickly

Glad to be of help!

There is a fairly low size restriction on .htaccess files because large .htaccess files means the web servers need to execute a lot of custom rules for every request. Depending on what you’re doing with the .htaccess rules, you may be able to fix it with simpler code or by handling some of the logic with PHP code.