SHARE
Facebook X Pinterest WhatsApp

Using .htaccess Files with Apache Page 7

Written By
thumbnail Ken Coar
Ken Coar
Jul 20, 2010
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



Apache provides two main ways of controlling its behaviour on a
per-directory level: containers
in the server-wide configuration files, and .htaccess
files in each directory where they’re needed. Each method has its
advantages and its disadvantages; you, as the Webmaster, need to
balance these against each other to decide what mix of the
techniques is best for your environment.

If you do decide to permit the use of .htaccess
files, be sure to limit them to appropriate areas and improve
your performance by using AllowOverride None
elsewhere. This will save unnecessary disk activity.


Got a Topic You Want Covered?

If you have a particular Apache-related topic that you’d like covered
in a future article in this column, please let me know; drop me
an email at
coar@Apache.Org>.
I do read and answer my email, usually within a few hours
(although a few days may pass if I’m travelling or my mail volume is
‘way up). If I don’t respond within what seems to be a reasonable
amount of time, feel free to ping me again.

About the Author

Ken Coar
is a member of the Apache Group and a director and vice
president of the
Apache Software Foundation.
He is also a core member of the
Jikes open-source Java compiler project, a contributor to the
PHP project, the author of
Apache Server for Dummies, a lead author of
Apache Server Unleashed,
and is currently working with Ryan Bloom on a book for Addison-Wesley
tentatively entitled Apache Module Development in C.
He can be reached via email at
coar@apache.org>.

thumbnail Ken Coar

Ken Coar is a ServerWatch contributor.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
What Is a Network Policy Server (NPS)? | Essential Guide
Virtual Servers vs. Physical Servers: Comparison and Use Cases
Ray Fernandez
Nov 14, 2023
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.