Creating an .htaccess File
Many application frameworks such as Drupal or WordPress already include an .htaccess file. If one does not exist, publishers can create an .htaccess file using any text editor on your computer such as Notepad or a text editor on the uts.cc.utexas.edu server such as Pico, Emacs or Vim. Files created with Microsoft Word should be saved as “text only.”
To view .htaccess files in your directory listing on the server, you must use the "ls -a" command. Unix files that begin with a dot “.” are hidden in the normal listing.
To create the file
- Create and save a text file with the name .htaccess.
- You do not need to create any content in the .htaccess file for it to be stored in the directory.
- Move or upload the text file to the directory you want to protect or for which you wish to modify configuration settings.
Last updated May 30, 2014 @ 11:09 am