Woocommerce REST API 404错误 [英] Woocommerce REST API 404 error
问题描述
由于woocommerce发布了带有REST API功能的2.1版本,我试图使用它:我在我的woocommerce管理面板上激活了API,但是当我尝试调用curl: http://www.mydomain.com/wc-api/v1/
Since woocommerce released the 2.1 version with REST API feature, I tried to use it: I activated the API on my woocommerce admin panel but when I try to call the curl: http://www.mydomain.com/wc-api/v1/
响应是一个404文件未找到错误。
the response is a 404 file not found error.
我试图检查互联网中的一切,我已经阅读woocommerce文档,但我不知道我要做什么:
I tried to check everything in internet, I've read woocommerce docs but I cannot figure out what I have to do: probably some setting in the server apache or php... I don't know..
谢谢
推荐答案
尝试在管理面板上进入设置 - >固定链接。在默认设置单选组上,选择帖子名称。保存更改。
Try going, on the Admin Panel, to Settings -> Permalinks. On Default Settings radio group, select the "Post name" one. Save the changes.
为我工作;也希望你。 :)
Worked for me; hope for you too. :)
资料来源:本博文。
这篇关于Woocommerce REST API 404错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!