Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nevyn522

    (@nevyn522)

    HA! Figured it out.

    Will post full explanation and steps tomorrow, as it might be useful to other people. Short version: final, default regex redirects to page-mode. Unfortunately, it also matches legitimate index.php access when located in a subdirectory.

    Have a solution now, working on a better one for the future.

    Thread Starter nevyn522

    (@nevyn522)

    I’ve drilled down to the following, and it appears to only be peripherally involved with whether or not my host supported rewrite rules.

    The incoming $_SERVER[‘REQUEST_URI’] is the same regardless of what the permalink setting is.

    There are two different settings I’m alternating between. It appears that within WP_Query.parse_query() two different sets of query strings are coming in; I’m trying to walk back up the callstack to find out where it could have changed.

    In the success case:
    permalink: /index.php/%year%/%monthnum%/%day%/%postname%/
    $wp_query->query: ” (empty array)

    In the failure case:
    permalink: /%year%/%monthnum%/%day%/%postname%/
    $wp_query->query: { ‘subdomaindirectory/index.php’ } (1 element array)

    Now, I imagine this has something to do with the internal processing of the rewrite rules in rewrite.php, but I haven’t yet looked into them enough. If someone has an immediate answer as to where I should focus, well, that would be great.

    Thread Starter nevyn522

    (@nevyn522)

    I’ve investigated more, and I’m just bewildered. Accessing my home page with permalinks set to:
    /index.php/%year%/%monthnum%/%day%/%postname%/
    it loads and uses theme\index.php

    When I change to
    /%year%/%monthnum%/%day%/%postname%/
    it loads theme\post.php

    Since there is no corresponding post, the page is blank.

    It appears that my 404 page isn’t loaded (I put in logging code, and nothing is logged, but it is when I explicitely go to a bad page). How can I determine why post.php would be loaded for both implicit and explicit blank page, rather than the default index.php for my theme?

    Thanks!

    Thread Starter nevyn522

    (@nevyn522)

    Turns out that trying to “preview” works — https://www.office-monkey.com/?preview=1, as does specifying ?height=751&width=1080.

    It appears it only DOESN’T work when I specify:
    https://www.office-monkey.com
    or
    https://www.office-monkey.com/index.php

    Other themes also don’t work, so it’s not related to that…

    Anyone have any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)