But if you go to the homepage and put in the index.php so you would go to http://www.greattipsforfamilytrips.com/index.php (which is the same page) and hot previous entries there, it goes works and goes to the correct URL without the additional index.php.
I hope I am explaining that correctly. Does anyone have a fix for this?
For the last few minutes, I have been trying to figure out why next_posts_link() did not work on a template for a clients’ blog, under IIS.
I found a great tip, but I prefer standard functions over things that work.
Then I found out under IIS, PHP returns a wrong value for $_SERVER["REQUEST_URI"]. The link to the previous page was index.php/Index.php/page/2/. Notice there are two “index.php” (for Windows, index and Index are just the same.)
The real, working, clean and easy solution is to add a simple line of code in the clean_url() function in wp-includes/formatting.php:
just put this at the beginning of the fuction before any "if Statements" only thing is you have to remember to do this again if you upgrade word press.
Vladimir’s WordPress Forum
Problem with pagination on homepage
18:10
22 September, 2008
John V
This is strange but this is what is happening.
If you go to the url which does not show index.php for the homepage, the "previous entries" link doesn't work. It shows 2 index.php in the url. So it would look like http://www.greattipsforfamilytrips.com/index.php/index.php/page/2
If you remove the additional index.php it works.
But if you go to the homepage and put in the index.php so you would go to http://www.greattipsforfamilytrips.com/index.php (which is the same page) and hot previous entries there, it goes works and goes to the correct URL without the additional index.php.
I hope I am explaining that correctly. Does anyone have a fix for this?
Thanks, John
4:53
27 September, 2008
John V
No answer yet… does anyone have any clues? No one can get to my previous posts.
23:24
18 January, 2009
Don
Fix: paging in WordPress under IIS
For the last few minutes, I have been trying to figure out why next_posts_link() did not work on a template for a clients’ blog, under IIS.
I found a great tip, but I prefer standard functions over things that work.
Then I found out under IIS, PHP returns a wrong value for $_SERVER["REQUEST_URI"]. The link to the previous page was index.php/Index.php/page/2/. Notice there are two “index.php” (for Windows, index and Index are just the same.)
The real, working, clean and easy solution is to add a simple line of code in the clean_url() function in wp-includes/formatting.php:
just put this at the beginning of the fuction before any "if Statements" only thing is you have to remember to do this again if you upgrade word press.
Hope this helps you out.
My Site http://blog.ebookzones.com you will see my PageNav now works great.
Don
23:45
18 January, 2009
Vladimir
posts 685
Thanks for sharing this useful information Don.