[wp-trac] [WordPress Trac] #45074: Unable to use rest api if it has a query "?" in the url on Nginx. Gives "{"code":"rest_no_route", "message":"No route was found matching the URL and request method", "data":{"status":404}"

WordPress Trac noreply at wordpress.org
Thu Oct 11 01:47:28 UTC 2018


#45074: Unable to use rest api if it has a query "?" in the url on Nginx. Gives
"{"code":"rest_no_route","message":"No route was found matching the URL and
request method","data":{"status":404}"
--------------------------+------------------------------
 Reporter:  instanceid    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.9.8
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by instanceid):

 I tried to edit my post but could not seem to find the option to. I wanted
 to add that I have tried several things that other people have mentioned
 that have worked for them, such as using
 "?json_route=/posts?filters[s]=something" in place of /wp-json/ but
 unfortunately that doesn't seem to make any sort of difference, either
 using permalinks or not.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45074#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list