Add redirection via API
-
Hey guys,
For some reason adding a redirection through such a link: https://smartstars.ro/wp-json/redirection/v1/redirect simply doesn’t work – the response shows all redirections but doesn’t add them.
The body payload is:
{“id”:0,”url”:”/test”,”title”:””,”match_data”:{“source”:{“flag_regex”:false,”flag_trailing”:true,”flag_case”:true,”flag_query”:”exact”},”options”:{}},”match_type”:”url”,”action_type”:”url”,”position”:0,”group_id”:1,”action_code”:301,”action_data”:{“url”:”https://google.com”}}
So I get a 200 response but it’s not adding the new redirect. How could I debug it? Am I missing smth?
Thank you!
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add redirection via API’ is closed to new replies.