If you are just beginning to learn PHP, there may be many functions to study, today we will learn how to use the PHP Header (), more instructions, please refer to the PHP Chinese manual, the following is about the Header function detailed use
If you have just started to learn PHP, there may be many functions need to study, today we will learn how to use the PHP Header (), more instructions, please refer to the PHP Chinese manual, the following is a detailed use of the header function
If you have just started to learn PHP, there may be many functions need to study, today we will learn how to use the PHP Header (), more instructions, please refer to the PHP Chinese manual, the following is a detailed use of the header function
Header ("http/1.1 404 Not Found");
Copy CodeFor the ErrorDocument 404/404.php function in Apache configuration, the
Error_page 404/404.php;
Copy CodeChange into
Error_page 404
If you have just started learning PHP, there may be many functions that need to be studied. Today we will learn how to use PHP Header (). For more instructions, please refer to the PHP Chinese manual. The following describes how to use the header
Recently I found a more detailed and reasonable article. Some of them must think it is very important. The 404 page adjustment should not use Meta Refresh, which makes it easy for search engines to misjudge and deserves attention. Second, there is a
First, let's look at the header function.The header () function sends the original HTTP header to the client, header (string, replace, http_response_code)Php header 404:Php code The code is as follows:Copy code Header ("HTTP/1.1 404 Not Found");
In the article "view how search engine spider crawls your website through HTTP status code", I introduced some frequently-involved HTTP status codes and their meanings, for example, the HTTP Status Code 404 related to this article is frequently
Use the PHPheader () function in detail (error settings such as 301 and 404 ). If you have just started learning PHP, there may be many functions that need to be studied. today we will learn how to use PHPHeader (). for more instructions, please
The 404 page tells the search engine that the page does not exist, and also prompts users to select other operations. next I will introduce php custom 404 to my friends who do not have apache operation permissions.
The 404 page tells the search
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.