Forums

Problem displaying older entries - error 404 (4 posts)

  1. craigcreid
    Member
    Posted 3 weeks ago #

    Having trouble getting my site to display older entries.

    I have category pages set up to only show 5 entries at a time. If I have over this amount in the category, the button appears on the page for 'older entries'. However this throws up a 404 error instead of showing the page of older entries.

    I think it is permalink related but have no idea how to solve it.

    If my permalink is:
    /%category%/%postname%/
    I get the error.

    Bizarrely through a typo I found that
    /%category&/%postname%/ (note the & symbol instead of %)
    Does show up the list of older entries without the 404, however trying to view and individual post throws up a 404 instead.

    Any ideas how I can fix this? Help would be most appreciated.

  2. esmi
    Member
    Posted 3 weeks ago #

    Site url?

  3. Shane G
    Member
    Posted 3 weeks ago #

    Hi,

    Add this code in htaccess and have a check with old and new posts:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

  4. craigcreid
    Member
    Posted 3 weeks ago #

    Tried that Shane and it had no effect.

    I have discovered however that changing pemalinks to:

    /%category%/%year%/%pagename%/

    Works fine. For some inexplicable reason, it refuses to work when category and pagename are next to each other. I guess I can live with having the year in there between them.

Reply

You must log in to post.

About this Topic