404 error, many people know that if you want to access the URL does not exist when you read the display of this page. In the past in dealing with 404 aspects of our usual practice is to write a few lines of words, and the interested people may be a little landscaping, and a few other want to opportunistic guys even use meta tag to do the delay turn, In fact,
The following two steps are implemented
First, in the root directory of the site to see if there is a. htaccess file, if not to build a self. Add the following statement to the. htaccess file:
The code is as follows
Copy Code
ErrorDocument 404/404.html
Second, create a 404.html file in the root directory of the website, the
404 Error status Code is the page can not find the return of a tell search engine this page will never save, the following small series to give you the students to introduce 404 error status code in the ASP code how to achieve it.
Set 404 status in ASP
The code
★ Welcome to The Guardian God · V Classroom, website address: http://v.huweishen.com★ Guardian God · V Classroom is a Web site dedicated to providing server instructional video for the Guardian God, updated weekly video.★ This section we will lead you: how to set 404 error pageAn HTTP 404 error means that the page that
Never show the negative side to your customers, even when your site has a 404 error page. Some travel companies are seriously dealing with this problem and have spent a lot of effort to create creative/interesting 404 error pages.
1.5 ago, we began to pay attention to the travel business site
1. Create your own 404.html page and place it in the root directory of your Web site.2. Change nginx.conf in the HTTP definition area: fastcgi_intercept_errors on;3. Change the nginx.conf (or separate site profile)Join in Server zone: Error_page 404/404.html or Error_page 404 http://www.xxx.com/
# set $domain for your domain (note no www)
$domain = "oso.com.cn";
# set URL, note no post-dash/
$docroot = "http://www.oso.com.cn";
# Set font for error messages
$fontface = "Verdana";
# Set the font size for 404 pages
$fontsize = "2";
# set 404 page background color, default is white
$bgcolor = "#ffffff";
# set text color, default is black
$textcolor = "#00000
Yesterday the company asked for all items to add a custom 404 error page, the specific requirements to achieve the following points:1. Implement custom errors (such as various error,404, etc.) to jump to the specified page2. The HTTP status value for the specified page output must be
Site appears dead link is every webmaster do not want to see one of the questions, the existence of dead links will not only seriously hit the user's friendly experience, but also if the dead chain will attract more search engine punishment. But the dead link is inevitable to each site will encounter, especially some just upgraded the site. Site upgrades in the column adjustment, content deletion and so on will cause the site to appear a large number of dead links. Encountered this sit
Copy Code code as follows:
# set $domain for your domain (note no www)
$domain = "Jb51.net";
# set URL, note no underline/
$docroot = "Http://jb51.net";
# Set the font for error messages
$fontface = "Verdana";
# Set the font size of 404 pages
$fontsize = "2";
# Set the background color of the 404 page, the default is white
$bgcolor = "#ffffff";
# s
If your users can't find the page he wants, how to give him a friendly reply, and you know that this error has occurred, look at the following program, is used to customize the 404 error page and send a notice to the network management of good things. ---teaman translation and Finishing
# set $domain for your domain (note no www)
$domain = "oso.com.cn";
# set UR
If the user who is visiting your site temporarily appears unable to access the page for a variety of reasons, how to give him a friendly reply, and you know that this error occurred, look at the following procedure, is used to customize the 404 error page and notify the network management.
# set $domain for your domain (note no www)$domain = "Oncoding.net";# set
If your users can't find the page he wants, how to give him a friendly reply, and you know that this error has occurred, look at the following program, is used to customize the 404 error page and send a notice to the network management of good things. ---teaman translation and Finishing
# set $domain for your domain (note no www)
$domain = "oso.com.cn";
# set UR
Most articles tell you how to search for the Asp.net website to customize the 404 error page:
In web. config, find system. Web and configure the following content.
In fact, after doing so, we will not be able to find the webpage header information for 404 not found, and we will get the webpage header information for 302 temporary redirection. You can use the ch
Ajax requests php to report error 404, but the script can properly output data. Ajax requests php to report error 404, but the script can normally output data. Solution 1. the scenario ajax requests the php script to return a 404 status code, but the php script can output da
IIS version: IIS 8.5Problem description
Build a test site, a total of 2 pages (index.php and 404.php), the default home page is: index.php
When accessing index.php and 404.php, the IIS server responds properly, stating that there is no problem configuring the PHP environment in IIS 8.5.Visit index.php
Access 404.php
In addition, my
Each project may encounter 404,403,500 error code, such as no error page, will give the user a very unfriendly interface, the Springboot project also has this problem.However, in the official document does not have the relevant configuration information, which requires us to implement, check the information, and test pass, there is a method is relatively simple and feasible.For Springboot integration MVC he
The recent integration of WebSocket into the project, open Web pages will always encounter such errors.There are 3 reasons for saying this online, but they are not for me, but they are also recorded.1.struts2 intercepted the WS request. This invocation can attempt to empty the Web. XML, which is the problem if it can be connected. At this point, add the following in the Struts.xml configuration file:name= "Struts.action.excludePattern" value= "ws://*" >constant>The request to WS is not interce
For the Internet family, I believe that you often visit certain pages, some pages will be inaccessible, prompted: 404 Not Found. Many Web pages may feel 404 Not Found is the page is not found or has been deleted. But if you're still stuck on all the pages that can't be accessed are called "404 Not Found", then you need to update your knowledge base.
What do
The method is as follows:Create an HTML file for your 404 pages. It could be anything you want. This may be 404 is just a blank page. It can also be your layout, which includes 404 words of it. It all depends on your will.Save the file in any file format you want (HTML format, PHP etc; and upload it to your Web page. You can always be in your primary or root dire
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.