RewriteCond in .htaccess with negated regex condition doesn't work?

后端 未结 4 1978
野的像风
野的像风 2020-12-30 03:25

I\'m trying to prevent, in this case WordPress, from rewriting certain URLs. In this case I\'m trying to prevent it from ever handling a request in the uploads directory, an

4条回答
  •  情歌与酒
    2020-12-30 04:00

    I have found many examples like this when taking a "WordPress First" approach. For example, adding:

    ErrorDocument 404 /error-docs/404.html

    to the .htaccess file takes care of the message ("Additionally, a 404 Not Found error...").

提交回复
热议问题