一元网络论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 135|回复: 0

Nginx set reverse proxy, WP homepage always 301

[复制链接]

3万

主题

3万

帖子

9万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
94972
发表于 2024-10-19 04:26:23 | 显示全部楼层 |阅读模式
There is a problem with my two VPS servers:
One as Nginx reverse proxy server and the other one to deploy a website. The latter is also using Nginx for the website, which is Wordpress. After setting up the reverse proxy successfully, all access were normal until I set the backend Wordpress admin page to be static. Then when I access the homepage it redirects 301 but accessing www.domain.com/home/ works normally. If I set the admin page of Wordpress to be latest posts then accessing www.domain.com won't redirect to 301 anymore, it's just working normally. What is the reason behind this? I tried many methods but still can't solve it.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|一元网络论坛

GMT+8, 2024-11-24 09:15 , Processed in 0.056496 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表