[WordPress] Front page link to second page shows “index.phpIndex.php” when hosting on IIS
Been having a rather curious bug on WordPress installations on IIS such that for the front page, the previous post link to the second page keeps showing “index.phpIndex.php” instead of forming the correct url path.
Finally fixed this by modifying the code at “/wp-includes/link-template.php”
function get_pagenum_link($pagenum = 1) {
...
// insert before return $qstr
$qstr = str_replace("index.phpIndex.php","index.php",$qstr);
return $qstr;
}
Related posts:
- D-Link DGS-1005D shows compatible Non-IEEE 802.3ad (ALB) but not DGS-1008D!
- Finally! Fixed the sort order of the posts in WordPress
- Wondering when the next Page Rank update will be? Take a look at its history!
- Posting to WordPress via Windows Live Writer cause "The server committed a protocol violation"
- WordPress 2.2 gets released