The MU forums have moved to WordPress.org

Paging using permalink not working for year, month and day archive (3 posts)

  1. debrouille
    Member
    Posted 17 years ago #

    Hello,

    it looks like the permalink works perfectly on my WPMU site, except while for paging functions by monthly listings.

    This link will work correctly:
    domain.com/blogpath/blogname/2006/08/

    But not this one:
    domain.com/blogpath/blogname/2006/08/page/2/
    which is called by the posts_nav_link() function
    -> gives a 404 page not found
    The same happends with a day listing, like
    domain.com/blogpath/blogname/2006/08/14/page/2/
    or year listing like
    domain.com/blogpath/blogname/2006/page/2/

    Other paging functions work well, like:
    domain.com/blogpath/blogname/tag/a_category_name/page/2/

    If i disable permalinks, paging works fine:
    domain.com/blogpath/blogname/?m=200608&paged=2

    This is the permalink structure i use:
    /%year%/%monthnum%/%day%/%postname%/

    Who has an idea, where i can search to debug this?
    Thanks in advance for any hint.

  2. drmike
    Member
    Posted 17 years ago #

    Well, the first thing I would check is the webserver's error logs to see what errors if any are listed are listed.

    What is the URL of the WPMU install?

    What is the URL of the example blog?

    What's in the .htaccess files at domain.com and domain.com/blogpath?

    Why didn't you install it in the root at domain.com?

  3. debrouille
    Member
    Posted 17 years ago #

    I finally found the solution:

    the line handling of date combined with paging was simply missing in the .htacess!

    I just added this line to solve the problem:
    RewriteRule ^([_0-9a-zA-Z-]+)/([0-9]{4})/?([0-9]{1,2})?/?([0-9]{1,2})?/page/?([0-9]+)?/?$ /blogs/wp-inst/index.php?wpblog=$1&year=$2&monthnum=$3&day=$4&page=$5 [L]

    where /blogs is the subdirectory where wmpu ist installed

    Has anybody already experience this? Why was ist missing?

    > Why didn't you install it in the root at domain.com?
    Because we need it so! The blogs are a subdirectory of our website....

About this Topic

  • Started 17 years ago by debrouille
  • Latest reply from debrouille