• 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.

Viewing 1 replies (of 1 total)
  • Thread Starter chortlehoort

    (@chortlehoort)

    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));

Viewing 1 replies (of 1 total)
  • The topic ‘PATHINFO Permalink Mechanism’ is closed to new replies.