.htaccess file application

xiaoxiao2021-03-06  16

A Custom 404,401, and other errors 1. First create a named: .htaccess writes the following ErrorDocument 401 /err401.html ErrorDocument 402 /err402.html ErrorDocument 403 /err403.html ErrorDocument 404 /err404.html wherein representatives 401 402 403 404 Error type, after Err401.html represents its corresponding page, 2. Established the name: Err401.html, Err402.html ........ When the corresponding error occurs, It is directed to the opposite page 3. It is passed to the root directory, which is OK under the public_html directory. Go off the advertisement to build a file name. Htaccess file, the file content is as follows: layoutignoreuri * .cgi LayoutIgnoreuri * .cgi LayoutOREURI *. HTM Layoutignoreuri * .html will go to the public_html directory of .htaccess, you can remove the advertisement! Note *. * Here .. I want to go to the extension file, write the extension of the file! This is the most Simple method, as long as this file is added in the roots, the entire website will not have ads!

转载请注明原文地址:https://www.9cbs.com/read-45166.html

New Post(0)