我正在使用以下插件Json 休息 API http://wordpress.org/plugins/json-rest-api/.
要测试插件文档 https://github.com/WP-API/WP-API/blob/master/docs/guides/getting-started.md指出我应该只使用:
$ curl -i http://testpress-maxximus.rhcloud.com/wp-json/
HTTP/1.1 404 Not Found
Date: Sat, 24 May 2014 07:01:21 GMT
Server: Apache/2.2.15 (Red Hat)
Content-Length: 303
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /wp-json/ was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at testpress-maxximus.rhcloud.com Port 8
0</address>
</body></html>
正如您所看到的,URL 没有找到任何内容。如果 API 或 WordPress 出现问题,有什么建议吗?
感谢您的回复
当前版本的 REST api 对于未启用漂亮永久链接的网站,网址
yoursite.com/?rest_route=/
将工作 。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)