---

8 uses of the htaccess file in Apache

[ Thanks to Juan
Valencia
for this link. ]

“The file .htaccess allows us to change some of the
settings of a server for a particular directory and it’s
subdirectories. While it is preferable to make this type of
configurations in the server configuration file itself by the use
of a section, sometimes we simply don’t have access to this
configuration file, specially when we have a shared hosting
account. Most shared hosting providers allows us to make changes to
the behavior of the server only in this way.

“The .htaccess file is a simple text file that we name like
this, note the dot at the beginning of the file name for this is
important. We can edit this file in our favorite text editor, and
then upload it to our server, placing it in the folder where we
want to alter the default behavior.”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis