The entire transfer process of the website is very smooth, except that the 404 error page settings are different from those of windows systems. In linux, how does one set a custom 404 error page? The following two steps are involved: 1. Check whether the. htaccess file exists in the root directory of the website. If not, create one. In. in the htaccess file, add the following statement: During the Golden Week of the 11 S, the lease preparation for a website space managed by my staff has expired. After confirming that you do not need to bind a subdomain name, therefore, the website is transferred from the original windows2003 system to the linux system. This is also due to cost-effectiveness. Because of the same space, linux is much cheaper than window.
The entire transfer process of the website is very smooth, except that the 404 error page settings are different from those of windows systems. In linux, how does one set a custom 404 error page?
The following two steps are implemented:
1. Check whether the. htaccess file exists in the root directory of the website. If not, create one. Add the following statement to the. htaccess file:
ErrorDocument 404/404 .html
2. Create a 404.html file under the root directory of the website. The file suffix must be consistent with the file specified in. htaccess.
Success, indicating that the custom 404 error page is successful.