Customize or disable page/1/ redirection?
-
OK, so I’m making my own page system and I figured out everything up until now.
Basically what it is, is a proper page system. (Oldest posts are on page one, instead of the other, wrong way around. And it’s not just reversed)
My problem is now figuring out how to make kimpix.net/page/1/ actually redirect to/stay on /page/1/ (index.php?paged=1) instead of just redirecting to the home URL kimpix.net
This is because I need to run:
$pagenum = $paged; if($pagenum == ''){$pagenum = $numofpages;}
…to check if someone is viewing the “front” of my blog with a page specified or not (not same as is_home() or is_front_page() mind you) and display the most recent page if so.
The entire code used for now, just for testing:
https://paste.uni.cc/19322And the problem is evident by visiting:
https://kimpix.net/page/4/ <- most recent posts
https://kimpix.net/page/1/ <- should contain oldest posts
https://kimpix.net <- but redirects to this, which contains page 4
- The topic ‘Customize or disable page/1/ redirection?’ is closed to new replies.