• Resolved dryan1144

    (@dryan1144)


    I’ve tried to redirect a default REST API endpoint such as wp-json/wp/v2/post_type?filter[taxonomy_slug]=taxonomy_name/ to no avail. I’m guessing that the redirect fires after headers for this endpoint is sent – is there any way around this? End goal is to make sure taxonomy name change is redirected in the REST API as well as on the front end.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    The REST API is explicitly excluded from redirects as people end up breaking the plugin.

    I’m not sure it’s necessary to redirect API endpoints like this.

    Thread Starter dryan1144

    (@dryan1144)

    In our case it is necessary as we have external calls to various endpoints that need to support both versions of the taxonomy name, hence the redirect.

    Plugin Author John Godley

    (@johnny5)

    There is no feature in the plugin to ignore the protected URLs. It might be better to perform these in code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect REST API endpoints’ is closed to new replies.