Canonical redirect breaks POST requests
-
I’m trying to support some legacy apps that POST their request to our site URL without the “www.” at the start; however, I have everything else configured for https://www.sitename.com.
After reviewing the logs it appears that wordpress is running the “redirect_canonical” function as part of the “template_redirect” action. Of course when a POST request is redirected the post data is dropped and a GET request is made.
Where would I need to remove the redirect action to only affect the JSON API?
- The topic ‘Canonical redirect breaks POST requests’ is closed to new replies.