it in the. htaccess:ErrorDocument error code/folder/file name at the beginning of the site root directory For example, if the user cannot find the page, it will produce a 404 error callback, please add the following data in the. htaccess:ErrorDocument 404/error/notfound.htm automatically turns to localhost (or your website's IP)/error/notfound.htm when the user browses to a nonexistent page,Figure 2 Custom
website for which you want to set custom 404 --> click custom error options --> Select page 404 --> select and open edit Attributes --> set to URL --> enter "/err404.html" in the URL --> return the URL and upload the err404.html page to the root directory of the website. In "Message Type", you must select "file" or "Default Value" instead of "URL". Otherwise, the "200" status code is returned. 3.
Generally after the Apache build a site, will set the following error jump.
The code is as follows
Copy Code
ErrorDocument 404 "Http://www.111cn.net"
Last Try date 2007-7-8: We detected that your 404 (file not found) error page returns a 200 (successful) status in the header.
Then listen to the Web page that is the address
that 404 pages face the impact of the search engine, for example: the wrong server-side configuration causes the return status code "200" or the custom 404 error page to return "302" using meta-refresh The status code.
How to Set
(for Apache servers only)1, add the code in the. htaccess file: ErrorDocument 404/error
404 Page Base Configurationthe 404 error is an error that is easy to access on the WWW site. The most common error tip: 404 Not FOUND. 404 error page settings for Web site SEO has a great impact, but not set up, such as direct jump home, etc., will be the search engine down the right to pull hair. The purpose of the
have seen. Git folder. But there is no such file under the local server? If you force a change of name from another file under Windows, you will be prompted to "type the file name" so we can use the command line.After opening CMD,CD to the specified directory, you can create a. htaccess file with the following command:echo.>.configAs stated earlier, the htaccess file is responsible for the configuration of the Web page under the relevant directory, so any folder under the server can have its ow
the brain (with an L missing ).A page is deleted, and other websites, such as forums and search engines, are still referencing this link.For the first kind of situation, of course, the favicon.icoand robots.txt files are uploaded to the root directory, so there is no more to say about the creation method and writing rules. In the second case, we can differentiate it from the third case, that is, the webmaster is notified only when the third case occurs.The following describes how to create a cu
Method One
The code is as follows
Copy Code
@header ("http/1.1 404 Not Found");@header ("status:404 not Found");echo ' echo 404 ';Exit ();
Load a 404 error page
The code is as follows
Copy Code
@header ("http/1.1 4
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 'rolling = 'no'> I have been developing a website and have never known how to customize the 404 error page in PHP. Today I finally figured it out, which is very
: Response.Status = "404 Not Found", which guarantees that the page returns a 404 status code.
4, Apache set 404 error page. The way to set the 404 error page for Apache server is simply to add the following content to the. htaccess file, ErrorDocument
How to set 404 pages and other error pages in PHPFirst create a new file under the project root, with the file name " . htaccess "Write the configuration entry in the file:ErrorDocument 404/404.html or an address with a file path: errordocument 404/error_pages/
What is the 404 page?
404 a webpage is displayed when a user attempts to access a webpage that does not exist on the website (because the user clicks a damaged link, the webpage has been deleted, or the user has entered an incorrect URL. Called 404The web page is returned because the network server returns the 404 http status code for the request for a lost web p
One day after VPS was changed, a large number of "soft 404" errors were found in the Google administrator tool console, after searching for some information, we found that the incorrect method for configuring the 404 page under Nginx resulted in an error. here we record the correct 404 page configuration method under Nginx. 4
, mainstream search engines, represented by Google, are increasingly strict with 302 redirection, this type of improper use of 302 redirection poses a great risk.
Set Error 404 page in Apache
Setting the 404 error page for Apache Server is simple. You only need to add the following content to the. htaccess file:
ErrorDocument
A few days ago, a friend of the program out of the problem but how to check all did not see problems, so let me help it look. In fact, it is an AJAX request for a number of templates, and then write the template to the page. The key is that all of the requested pages are 200 normal status code return, seemingly no problem, in fact, some requests, although return 200 status code, but give back the status code is 200. Webserver is nginx, just tell me that they configured the Nginx
Web page Production WEBJX article introduction: share the knowledge in the 404 error pages.
The basic understanding of 404 is that the Web page does not exist, it is a status code in the HTTP protocol. Even if you customize 404 of the page, but HTTP header information returned must be 404 states. This is main
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 engine that the page does not exist and also prompts you to select other operations, next, I will introduce my friends w
404 page is a tell the search engine this page does not exist, but also prompted the user can choose other operations, below I give no Apache operation rights to introduce a friend PHP custom 404 page Operation method.
Method One
The code is as follows
Copy Code
@header ("http/1.1 404 Not Found");@header ("status:
Amazing creative 404 error page design, 404 page design
A group of amazing creative 404 error page designs. It is frustrating to encounter a 404 error page when surfing the Internet. If there is nothing to attract your attention in a second or two, I am sure you will leave the website and will never come back again. Th
In some 2003 systems, iis cannot be set as above. Although the following method is acceptable, the returned status code is 200:Set message content to urlEnter/404.htm in the urlPut 404.htm under the root directory of the website.You cannot directly modify the default 404 page.This is a question about file quota. You only need to set
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.