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

Broken pagination links on WP 4.9.10 blog pages

programmeradmin1浏览0评论

We noticed a weird issue on our WP 4.9.10 blog pages when going to 1st page. Right now we can go to 2nd or 3rd page by clicking the page numbers but saw that it gives 301 code when going to 1st page but gets 200 response code for 3rd or 4th, and so on.

Clicking the Previous button on the blog pagination at the bottom takes you to a page with hosted server name.

This sometimes happens when clicking 1, 2, 3, when you are on page 4 (and so forth for other pages).

/

At the end we get site can't be reached because WP blog is set up inside DMZ with reverse proxy set up.

/

We have not customized any PhP code other than making few changes to admin panel settings and http conf changes to work with reverse proxy and https only.

We noticed a weird issue on our WP 4.9.10 blog pages when going to 1st page. Right now we can go to 2nd or 3rd page by clicking the page numbers but saw that it gives 301 code when going to 1st page but gets 200 response code for 3rd or 4th, and so on.

Clicking the Previous button on the blog pagination at the bottom takes you to a page with hosted server name.

This sometimes happens when clicking 1, 2, 3, when you are on page 4 (and so forth for other pages).

https://www.oursite/blog/category/news/page/1/

At the end we get site can't be reached because WP blog is set up inside DMZ with reverse proxy set up.

https://hostedservername/blog/category/news/

We have not customized any PhP code other than making few changes to admin panel settings and http conf changes to work with reverse proxy and https only.

Share Improve this question asked Apr 18, 2019 at 17:53 cnucnu 101
Add a comment  | 

2 Answers 2

Reset to default 0

please go to setting > permalinks and click on the save button if you are using nginx reverse proxy check this page: https://codex.wordpress/Nginx

Followed fix mentioned here to resolve pagination issue. Updated functions.php file to include add_filters function as mentioned there.

发布评论

评论列表(0)

  1. 暂无评论