The MU forums have moved to WordPress.org

/post2/, /post3/, etc., all show the content of /post1/ (5 posts)

  1. mintindeed
    Member
    Posted 16 years ago #

    On my site, everything appears to be working correctly but the permalinks are borked. It's like this:

    http://myblog.domain.com/ shows all the posts like normal.
    http://myblog.domain.com/page/2/ /3/ /4/ etc shows all the same posts as the front page.
    http://myblog.domain.com/category/cat1/ shows all the categories.
    http://myblog.domain.com/cat1/postname2/ /postname3/ postname 4/ etc all show the first post regardless of the URL.

    I don't have any problems with mod_rewrite on other non-WP web sites on the same server, and wildcard subdomains are enabled properly.

    Any ideas?

  2. drmike
    Member
    Posted 16 years ago #

    Anything in the webserver's error logs? (Just for reference, that's always the first place to check. You owe us coffee money if we have to ask. ;)

    Do you have any sort of cache program running, including the object cache built into wpmu? if so, I'd try clearing it and checking again.

    Another thing you can do is visit the Dashboard -> Options -> Permalinks page, choosing a different one, saving, choosing the one that you want, and resaving. It may just be stuck.

    Hope this helps,
    -drmike

  3. mintindeed
    Member
    Posted 16 years ago #

    Thanks for the reply, nothing out of the ordinary in the logs.

    I should also mention going to http://myblog.domain.com/?p=postID works fine, and it's also pulling up the correct post names, associated categories, etc., it's just the links don't go anywhere.

  4. mintindeed
    Member
    Posted 16 years ago #

    Problem solved. Digging through the code I realized that right before the post was being shown, I had just pasted in some code that listed the most recent posts. My recent posts code was bugged, and basically reset the post id to the last post in the get_posts array, ie the latest post, so when the next line started to show the current page it was using the reset post ID. Duh.

  5. jacksforyou
    Member
    Posted 16 years ago #

    i have this problem also but i do not know how to fix it. it happens for all my templates so i'm not sure whether it is code related

    i have tried doing everything drmike has suggested but have found no fixes

About this Topic

  • Started 16 years ago by mintindeed
  • Latest reply from jacksforyou