最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ajax - Permalinks causing wp-json to 405

programmeradmin2浏览0评论

I have 3 sites I am working with and only the main domain is having this disruption.

We have a staging site with no issues, and another subdomain with no issues as well. The main domain when updating certain plugins is coming back with a 405 rest_forbidden error. Our staging site has all the same plugins, same install version of Wordpress and same Theme, accept no issues. Our other site has the same theme and some same plugins as well but no errors as well.

The fix (but its not a perfect fix). On the primary domain when I set the permalinks to plain the wp-json error goes away completely. I have to switch it back for seo purposes which returns the issue.

Things I have done to attempt to resolve this.

  • Remove all htaccess code and replace with install htaccess code
  • Removed all plugins accept the primary fault plugin (no success)
  • Checked for any code that may be custom in the functions.php (no success).

Thank you for your help

发布评论

评论列表(0)

  1. 暂无评论