简体   繁体   English

nginx + wordpress +永久链接-除/ feed /

[英]nginx + wordpress + permalink - working except /feed/

I've a pretty much working web server, running on Debian 6.0.3, nginx + php-fpm, with wordpress as my blog backend. 我有一个运行良好的Web服务器,运行在Debian 6.0.3,nginx + php-fpm上,并使用wordpress作为我的博客后端。 I've done the setup using bash script from lempstack 我已经使用来自lempstack的 bash脚本完成了设置

Permalink is working for my pages and posts except feed. 永久链接适用于我的页面和帖子(提要除外)。 I get 404 from mydomain.com/feed/ but it works if I've already login, which is not what I wanted. 我从mydomain.com/feed/获得404,但是如果我已经登录,它就可以工作,这不是我想要的。

I'm trying to debug the redirect, wordpress is the one throwing 404. I've tried variation of nginx site config but still the same outcome. 我正在尝试调试重定向,wordpress是抛出404的那个。我尝试了nginx站点配置的变体,但结果仍然相同。 Has anyone face the same problem before? 有人遇到过同样的问题吗?

Finally found the issue, has nothing to do with nginx or php. 终于找到了问题,与nginx或php无关。 Apparently if there's no post at all, accessing rss feed with return 404. It works when I login, as I have a few private posts. 显然,如果根本没有任何帖子,请使用返回404访问rss feed。当我登录时,它可以工作,因为我有一些私人帖子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM