Problem redirecting 403 Forbidden to 404 Not Found

后端 未结 8 1381
心在旅途
心在旅途 2020-12-05 08:58

The pertinent part of my .htaccess looks like this:

Options -Indexes

    Order allow,deny
    Deny from all

Re         


        
8条回答
  •  悲哀的现实
    2020-12-05 09:41

    ErrorDocument 400 /fake_file_for_apache_404.php
    ErrorDocument 403 /fake_file_for_apache_404.php
    ErrorDocument 404 "404 Not Found

    Not Found

    The requested URL was not found on this server.

    " ErrorDocument 500 "Server in update. Please comme back later."

    I tried this solution, but I met another issue:

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request:

提交回复
热议问题