Because in a foreign space under the root folder to see this. htaccess, do not know what is doing, in the outdated forum to find an article, first turn to put, and then slowly study, hey.Apache guide:. htaccess files
The. htaccess file provides a
If your server directory structure is this:
/usr/corsak/www/maindir
If the allowoverride support. htaccess file is turned on in the Apache directive, each access is searched
What is the. htaccess?. Htaccess is called a distributed configuration file, which provides a way to change the configuration of a directory by placing a file containing one or more instructions in a particular document directory to act on this
I. The basic role of htaccess
. htaccess is a plain text file containing instructions for Apache server configuration.The main roles of htaccess are URL rewriting, custom error pages, MIME type configuration, and access control. Mainly embodied in
. htaccess is a plain text file that contains instructions related to Apache server configuration: URL rewriting, custom error pages, MIME type configuration, access control, and so on. Mainly embodied in pseudo-static applications, image anti-theft
I. Basic role of htaccess
. htaccess is a plain text file that contains instructions related to Apache server configuration.The main functions of the. htaccess are URL rewriting, custom error pages, MIME type configuration, and access control.
What is htaccess
As an overview, the htaccess file is a configuration file in the Apache server that is responsible for the page configuration in the related directory. Through the htaccess file, you can help us achieve: Web 301 redirect, custom 404
. What's htaccess?
Htaccess (hypertext access) is a file that provides site owners with the option to control server environment variables and other parameters, thereby enhancing the functionality of their web site. These files can be in any
I. Basic functions of. htaccessTo enable. htaccess, you must modify httpd. conf, enable AllowOverride, and use AllowOverride to restrict the use of specific commands.If you want to use a file name other than. htaccess, you can use the AccessFileName
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.