I've a wordpress installation on my IIS hosted site (yemkay.com). After a long search I found a good solution for enabling permalinks on it. Now I have a problem in my homepage.
As per the solution that I have used, I've added a custom 404 redirect page called wp-404-handler.php with the following code in it,
<?php $qs = $_SERVER['QUERY_STRING']; $pos = strrpos($qs, '://'); $pos = strpos($qs, '/', $pos + 4); $_SERVER['REQUEST_URI'] = substr($qs, $pos); $_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI']; include('index.php'); ?>
My permalink structure is /%category%/%postname%/. When I access the homepage I get a "Not found" error message. All the sections (posts, pages, categories, archives) work fine except the homepage. My homepage shows posts only when I append “/index.php” in the URL address. Simply http://www.yemkay.com doesn’t bring up any posts.
Any suggestions would be appreciated.