. Htaccess file is a simple ASCII text file located in your www directory or in a subdirectory folder www. We can create or edit this file in Text Editor (Notepad) and then upload it to the directory we want to change its setting. Make sure that the file isuploaded in ASCII not BINARY format, and make sure the file permissions for the filewas set to 644 (rw-r-r-). This allows the server to access the files but prevent users toaccess files from their browser.