The Web server does not respond to the user's needs and generates various error messages, all of which have a code, and we'll look at what this code means:
Response Code
Response Content
representative meaning
Apache2 httpd.conf Chinese version
#
# A configuration file based on the NCSA service.
#
#这是Apache服务器主要配置文件.
#它包含服务器的影响服务器运行的配置指令.
#参见 #
#不要只是简单的阅读这些指令信息而不去理解它.
#这里只是做了简单的说明, if you don't have a reference online file, you'll be
For the novice and me to see.
#
# A configuration file based on the NCSA service.
#
#这是Apache服务器主要配置文件.
#它包含服务器的影响服务器运行的配置指令.
#参见 #
#不要只是简单的阅读这些指令信息而不去理解它.
#这里只是做了简单的说明, if you don't have a reference online file, you'll be
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
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
1. Prevent hotlinking
Hotlinking is also called an inline link, which refers to a site's links directly to objects on another site. This can cause a loss of bandwidth and traffic to another site. For sites that provide a large number of pictures,
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
I did not consider how URL-oriented search engine optimization was taken into account when I wrote Jin Yuan Information Network (www.geofuture.net). after the optimization, I started. In this case, we need to consider static URLs, and try to keep
1. Configure. htaccess Custom Error page
The first application of the. htaccess is to customize the error page, which will allow you to have your own, personalized error page (for example, when you can't find a file), not the error page that your
Introduction: This is a detailed page for PHP custom 404 errors. It introduces PHP related knowledge, skills, experiences, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 322981 '
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.