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
Understand PHP's. htaccess file in depth .. The htaccess file provides a way to change the configuration of each directory. The. htaccess file (or distributed configuration file) provides a method for changing the configuration of each
Today the thinkphp URL pattern is http://localhost/mythinkphp/index.php/index/user/id/1 by Normal mode (url_mode=1). HTML changed to rewrite modeHttp://localhost/mythinkphp/Index/user/id/1.html, thus implementing the hidden. index.php effect when
What is. htaccess?. The htaccess file (or "distributed configuration file") provides a method for changing the configuration of directories, that is, to place a file containing one or more commands in a specific document directory, to act on this
The. htaccess file provides methods for changing the configuration of each directory.Working Principle and usage
. The htaccess file (or "distributed configuration file") provides a method for changing the configuration of each directory, that is,
In Apache. the htaccess file (also known as the "distributed configuration file") provides a method for changing the configuration of directories, that is, to place a file containing commands in a specific document directory, to act on this
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
. htaccess access Control (Allow/deny) 1. Verify that support is supported.htaccess
Create a new file in the directory .htaccess , essay input A string of characters (meaningless), see what reaction, if it is a 500 error, indicating that
. The htaccess file is an important configuration file in Apache. Its format is plain text. It provides a method for changing the configuration of directories, you can place a file containing one or more commands in a specific document directory to
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
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.