• Resolved jimshouse

    (@jimshouse)


    i would to like to redirect all wp-json calls to another page

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

    (@sourcefound)

    Hi jimshouse! This plugin cannot redirect wp-json calls as WordPress does not load the theme or plugins for wp-json.

    Thread Starter jimshouse

    (@jimshouse)

    It does work for siteurl/wp-json and /wp-json/ but when the wp-json/ parm is followed by anything else like /wp-json/oembed… the redirection fails.
    the 3 filters i am using now are
    /wp-json to /ForgiveMe
    /wp-json/ to /ForgiveMe
    /wp-json/(.*) to /ForgiveMe
    the first 2 work great how should i format the 3rd call to get the plugin to redirect for
    command lines that start with /wp-json
    please help i am trying to stop people from getting into my sites

    Plugin Author MembershipWorks

    (@sourcefound)

    Hi jimshouse! Wildcard paths are not supported with this plugin, you do need to specify a separate redirect for each path/URL.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp-json’ is closed to new replies.