Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
.htaccess
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Directory-level configuration file}} [[File:Htaccess.jpg|thumb|alt=.htaccess file|.htaccess file]] <!-- NB! Before editing, please read https://en.wikipedia.org/wiki/Wikipedia:What_Wikipedia_is_not - Wikipedia is not a manual --> An '''.htaccess''' (''[[hypertext]] access'') file is a [[directory (file systems)|directory]]-level [[configuration file]] supported by several [[web server]]s, used for configuration of [[website]]-access issues, such as [[URL redirection]], [[URL shortening]], [[computer access control|access control]] (for different [[web page]]s and files), and more. The 'dot' ([[Full stop|period]] or [[full stop]]) before the file name makes it a [[Hidden file and hidden directory|hidden file]] in [[Unix]]-based environments. A site could have more than one <kbd>.htaccess</kbd> file, and the files are placed inside the web tree (i.e. inside directories and their sub-directories), and hence their other name ''distributed configuration files''.<ref>[https://httpd.apache.org/docs/current/howto/htaccess.html Apache HTTP Server Tutorial: .htaccess files - Guide at Apache.org.]</ref> <kbd>.htaccess</kbd> files act as a subset of the server's global configuration file (like <kbd>[[httpd.conf]]</kbd>) for the directory that they are in, or all sub-directories.<ref>{{cite web | url = http://httpd.apache.org/docs/current/mod/core.html#allowoverride | title = AllowOverride Directive | access-date = 2009-03-02}}</ref> The original purpose of <kbd>.htaccess</kbd>—reflected in its name—was to allow per-directory access control by, for example, requiring a password to access [[World Wide Web]] content. More commonly, however, the <kbd>.htaccess</kbd> files define or override many other configuration settings such as content type, [[character set]], [[Common Gateway Interface]] handlers, etc.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)