do not log certain 404 pages
-
Hello,
I am (also) using the template_redirect action to check some incoming urls, if they have a certain pattern, I either redirect them (301) or set the header to 410. In both cases, I would like that the entry is not logged in the 404 table. I tried the filter “redirection_log_404” (__return_false) but that had no effect. I suspect, that the action might be the issue and that your logging happens already before my action-function is called. I also tried to change the action to send_headers, but that had no effect either.
Maybe you have an example on where you would put your filter or can point me in the right direction.
Thank you,
Sissi
The topic ‘do not log certain 404 pages’ is closed to new replies.