WordPress.org

Ready to get started?Download WordPress

Forums

next_posts_link permalinks (4 posts)

  1. kierzniak
    Member
    Posted 3 years ago #

    Hi! I have problem with next_posts_link and permalinks. When I set permalinks to default e.g.?p=123 next_posts_link is working ok. But when I set to /%category%/%postname%/ next_posts_link is redirecting me to 404 page. I must admit that i have page with custom post type "events". Summary up:
    http://www.domain.com/?p=events&?page=2 is working
    http://www.domain.com/events/page/2 404

    my .htcaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
  2. keesiemeijer
    moderator
    Posted 3 years ago #

  3. kierzniak
    Member
    Posted 3 years ago #

    This all most work form me! Pagination is ok, but all my events have 404.
    I have changed the slug so i have:
    http://www.domain.com/events/page/2 is working ok
    but with slug set to event
    http://www.domain.com/event/my-some-event i have still 404
    Any soultion?

  4. keesiemeijer
    moderator
    Posted 3 years ago #

    try this:

    'rewrite' => array( 'slug' => 'event', 'with_front' => true ),
    '_builtin' =>  false,

Topic Closed

This topic has been closed to new replies.

About this Topic