Single ErrorDocument directive to catch all errors (.htaccess)

前端 未结 4 1930
感情败类
感情败类 2020-12-15 15:33

Is there something like a wildcard directive to catch all possible errors and deal with them in a single custom error page?

ErrorDocument 404 /error.php?code         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-15 16:21

    That is not possible. You need to have a ErrorDocument directive for each status code you want to handle differently than with the default error handler.

提交回复
热议问题