• Urgent Help please.

    Though my post link is ok and usable, the previous entry cannot be properly used for its link: /index.php/index.php/page/2/. I don’t know why there are two “index.php”. When I used pagenavi plugin, all the Previous entries have the link: index.php/index.php/page/?

    Other links are ok but pervious entry is unavailable for the wrong link: /index.php/index.php/page/2/

    I use windows server 2003. I think one index.php is ok, but there are two of them. I don’t know how to solve the problem.

    Also, I cannot remove index.php, otherwise my site are unavailable. I searched a lot of solutions but I still cannot solve the problems. It seems that all the solutions are not for me.

    Please help me solve the problems.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter babynow

    (@babynow)

    Anyone here?

    sorry double posted solution

    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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Previous Entries Help: “index.php/index/php” in permalink’ is closed to new replies.