Vladimir’s WordPress Forum


 
guestdefault Vladimirs WordPress Forum
Current User: Guest user permissions Vladimirs WordPress Forum
Search Forums:


searchicon Vladimirs WordPress Forum 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

topic Vladimirs WordPress Forum

Problem with pagination on homepage

addtopic Vladimirs WordPress Forum Add a New Topic addpost Vladimirs WordPress Forum Reply to Post
UserPost

18:10
22 September, 2008


John V

guestdefault Vladimirs WordPress Forum
Guest

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

guestdefault Vladimirs WordPress Forum
Guest

No answer yet… does anyone have any clues?  No one can get to my previous posts.

23:24
18 January, 2009


Don

guestdefault Vladimirs WordPress Forum
Guest

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:

$url = str_replace('index.php/Index.php','index.php',$url);

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

 Vladimirs WordPress Forum
Admin

posts 685

Thanks for sharing this useful information Don.

addpost Vladimirs WordPress Forum Reply to Post

Reply to Topic:
Problem with pagination on homepage

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

htmlEditor Vladimirs WordPress Forum
Smileys
sf confused Vladimirs WordPress Forum sf cool Vladimirs WordPress Forum sf cry Vladimirs WordPress Forum sf embarassed Vladimirs WordPress Forum sf frown Vladimirs WordPress Forum sf kiss Vladimirs WordPress Forum sf laugh Vladimirs WordPress Forum sf smile Vladimirs WordPress Forum sf surprised Vladimirs WordPress Forum sf wink Vladimirs WordPress Forum sf yell Vladimirs WordPress Forum
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
2 + 1