• 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 https://www.yemkay.com doesn’t bring up any posts.

    Any suggestions would be appreciated.

    Thanks,
    Karthik

Viewing 4 replies - 1 through 4 (of 4 total)
  • I see you got it working… what did you have to do?

    Thread Starter fermisoft

    (@fermisoft)

    No. I haven’t yet. I dropped the idea of permalinks after trying out many ways. Installing an ISAPI filter for rewriting is the only thing, which I cudn’t try as my web hosting company doesn’t support installing filters.

    hi,
    i have tried this thing but still cannot access the desired page using permalinks. I keep on getting this error –

    “The system cannot find the file specified.”

    Please help me out

    ask your host to install an ISAPI rewrite filter on their windows boxes.

    if they refuse, ask them why they bother putting php and mysql on windows boxes, if they won’t do something simple like making sure the MOST REQUESTED FEATURE EVER is available as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pretty permalinks in IIS’ is closed to new replies.