Problem redirecting 403 Forbidden to 404 Not Found

后端 未结 8 1386
心在旅途
心在旅途 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:25

    Don't you want '^/include(/.*)?$'

    This part is a guess, but what would happen if you put the RedirectMatch above the block. That way you wouldn't by denying (forbidding) access to a request before you redirect that request to 404.

提交回复
热议问题