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 1012 Answers
Reset to default 0please 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.