The University of Texas at Austin

Web Central

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

We Can Help

Get help from an expert:

* ITS Help and Service Desk

* Call us at 512-475-9400

* Submit a help request online

We also have a walk-in service in the first floor lobby of the Flawn Academic Center (FAC). Stop by and let us help you!