There are two ways to customize the 404 error page for the Apache server:The first method is the simplest, directly under the Apache httpd.conf Configuration Modification Command, the contents of the changes are described in. htaccess command syntax
. htaccess is a very powerful distributed configuration file for the Apache server. The correct understanding and use of the. htaccess file can help us optimize our own servers or virtual hosts. For example, you can use the. htaccess file to create
. htaccess is a feature in the Apache virtual directory that can be used in place of the Apache Conf, like redirection and URL rewriting or security configuration, which can be used to take a look at some of the. htaccess examples below.
# This is
Through the. htaccess settings you can: Implement folder password protection, redirect, custom error page, change your file name extension, url rewrite, block IP, prohibit directory list, prohibit directory running a type of file, modify default
Enable. htaccess, you need to modify httpd.conf, enable allowoverride, and use allowoverride to limit the usage of specific commandsGenerally speaking,. Htaccess can help us implement include: folder password protection, user Auto Redirect, custom
# This is a note# Specify default Home lookup order
DirectoryIndex index.htm. index.php
#自定义404页面ErrorDocument 404/error/404.html#比较下面2句: The default is 302, the user is accessing ABC, but the actual display is a Def page, and the Address bar also
HTTP Standard protocol has a dedicated field record Referer, one can be traced back to the last inbound address is what, and secondly for the resource file, you can trace to include the display of his web address is what.So all anti-theft chain
Author: aolinks
The. htaccess file is the most commonly used configuration file on the Apache server. It is used to configure web pages under the relevant directory. The htaccess file can help us achieve: webpage 301 redirection, custom 404 error
The. htaccess file is the most commonly used configuration file on the Apache server. It is used to configure web pages under the relevant directory. The htaccess file can help us achieve: webpage 301 redirection, custom 404 error pages, changing
Htaccess is an Apache server configuration file, with powerful features, this article describes how to edit the file, let the Web site to block a country IP network segment, prevent pictures, file hotlinking, protect the directory and files under
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.