Posts not getting unique URLs

  • Unknown's avatar

    Problem:
    Article posts are all being given the URL of eqbay.co/articles upon publishing. This creates a loop where all the articles listed in the articles archive just link back to the articles archive.

    The content is all still there, the post just gets a URL of /articles for some reason.

    Attempting to visit any of the posts, even directly using the post ID (via ?p=) results in a redirect back to /articles via the redirect_canonical() function.

    This also caused imported article URLs to be rewritten to just be /articles.

    Diagnostic steps taken:
    1) Disabled all plugins
    2) Reverted to Twenty TwentyOne theme
    3) Rebuilt permalinks
    4) Manually set a canonical URL for an article
    5) Changed permalink configuration

    None of these had any effect. The one that changed any behavior was disabling redirect_canonical() via PHP. This resulted in the direct post URL (?p=) not redirecting to /articles, but did not fix the assigned article pretty URLs.

    I have checked an older staging version of the site that hasn’t been touched in a few weeks and found the issue there as well, so it isn’t anything I’ve done recently.

    I’m running the latest version of WP and Woocommerce on AWS Lightsail (Bitnami).

    Here is my rewrite list for the article category using WP CLI:

    match:
    (.?.+?)(?:/([0-9]+))?/?$
    query:
    index.php?pagename=$matches[1]&page=$matches[2]
    source:
    page

    match:
    (.+?)/?$
    query:
    index.php?category_name=$matches[1]
    source:
    post

    Here is a list of my system report:
    https://pastebin.com/eJEdpcPw

    WP.com: Yes
    Jetpack: No
    Correct account: Yes

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hello!

    Thank you for reaching out to the free support forums for websites hosted on WordPress.com. While your site is not hosted with us, we’re here to guide you in the right direction for assistance.

    Since you’re using the open-source version of the WordPress platform, which operates differently from what we provide on WordPress.com, you can find help at the community forums here:

    https://wordpress.org/support/forum/how-to-and-troubleshooting/

    The community members in the open-source forum are well-versed in these matters and are in the best position to offer support.

    I hope this information helps guide you in the right direction. Feel free to ask if you have any further questions or need more assistance.

  • The topic ‘Posts not getting unique URLs’ is closed to new replies.