Forums

PATHINFO Permalink Mechanism (2 posts)

  1. chortlehoort
    Member
    Posted 5 years ago #

    Can anyone describe the code/mechanism that makes the PATHINFO permalinks work? I'm trying to port my WordPress blog from Apache to Jboss Web, but when I try to use permalinks in any format other than the default, I get a 404.

    This is because JBoss is trying to handle the request instead of passing it on the PHP module. I've even tried adding a php extension to my permalink structure, but then I get a 404 generated by PHP instead of JBoss. Either way I get a 404.

    PHP is a language I've only used sparingly over the years. If someone could explain pathinfo permalinks - or tell me where the relevent code is - I would be very grateful. My hope is that I can code in a hack-around for it.

  2. chortlehoort
    Member
    Posted 5 years ago #

    I finally figured it out. I had to modify my JBoss deployment to have the PHP module parse HTML requests, then add the following code to the parse_request function around line 1555.

    // For Jboss implementation - strip off 'index.php/' prefix
    $match = implode("/",array_slice(split("/", $match), 1));

Topic Closed

This topic has been closed to new replies.

About this Topic