---
date: 2025-03-27T11:48:02+00:00
modified: 2025-03-27T11:48:02+00:00
permalink: https://kaspars.net/note/mastodon-social-114234706005867626
post_type: note
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
---

# On March 27, 2025 at 13:48

Ever wanted to know the source of a redirect in WordPress and the X-Redirect-By header isn't giving you enough context?

Here is a simple must-use plugin to log all redirects to a JSON file along with the PHP backtrace of all the function calls leading up to the redirect <https://gist.github.com/kasparsd/f6b6e5572b5afeabe0d26f9120df26f0>