【发布时间】:2014-07-13 13:56:46
【问题描述】:
我正在使用以下插件Json Rest API。
要测试插件,documentation 声明我应该只使用:
$ 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 有问题,有什么建议吗?
感谢您的回复
【问题讨论】:
-
您是否启用了pretty permalinks?
-
@brasofilo 感谢您的回答!是的,我有;(