wordpress - nginx - 404 未找到永久链接页面

标签 wordpress .htaccess nginx http-status-code-404 permalinks

关闭。这个问题是off-topic .它目前不接受答案。












想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。

8年前关闭。




Improve this question




我和我的 friend 有一个网站(http://www.ferfereh.ir - 抱歉不是英文)已经一年了。我们一直在使用安装了 wordpress 的 Linux Apache 主机。现在突然间我们所有的帖子(有一个永久链接结构 =/%category%/%postname%.html)都坏了,并说:

404 未找到

nginx

也许我们的主机提供商已经安装了 NginX。我不知道 Nginx 到底是什么,但我在某处读到它与 .htaccess 配置有一些冲突,这使我们的永久链接,是正确的。

我该怎么办?

非常感谢

最佳答案

try_files $uri $uri/ /index.php?q=$uri&$args;很好地解决了问题。不要忘记重启nginx!

更多 info

关于wordpress - nginx - 404 未找到永久链接页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3695387/

相关文章:

wordpress - 删除的页面爬取失败,出现 404

.htaccess - Joomla 包装器和 SSL

apache - Apache 的自定义 404 错误问题 - ErrorDocument 也是 404

nginx - GCE 负载均衡器 HTTPS 和 HTTP IP

带有 try_files 和 gzip_static 的 nginx 仅提供未压缩的

css 网格短代码并包装在 wordpress 中

wordpress - 使用 Bootstrap 的类别部分

php - Dropbox 样式 URL,不使用哈希或参数

azure - 入口资源文件错误 AKS - spec.rules[0].http.paths[0].pathType : Required value: pathType must be specified

wordpress - 可以在 WordPress 后端的某些页面模板上禁用内容编辑器吗?