FANDOM


In the Apache web server, .htaccess (hypertext access) is the default name of directory-level configuration files. A .htaccess file is placed in a particular directory, and the directives in the .htaccess file apply to that directory, and all subdirectories thereof. It provides the ability to customize configuration for requests to the particular directory. The file name starts with a dot because dot-files are by convention hidden files on Unix-like operating systems.

Common usageEdit

When .htaccess files should be usedEdit

For servers with multiple users, as is common in shared web hosting plans, it is often desirable to allow individual users the ability to alter their site configuration. In general, .htaccess files should be used by users who do not have access to the main server configuration files. [1]

When .htaccess files should not be usedEdit

To control Apache, using the main server configuration file httpd.conf[2] is preferred for security and performance reasons.[3]

  1. Performance loss - for each HTTP request there are additional file-system accesses for every parent directory when using .htaccess
  2. Security - allowing individual users to modify the configuration of a server can cause security concerns if not set up properly.

See alsoEdit

External linksEdit

ReferencesEdit

Template:Reflist


Template:Web-stubcs:.htaccess de:.htaccess fr:.htaccess ja:.htaccess pl:.htaccess ru:.htaccess simple:.htaccess fi:.htaccess zh:.htaccess


Cite error: <ref> tags exist, but no <references/> tag was found

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.