first the problem, then the tries.
The problem is that i get a 404 NOT FOUND error if i visit another page than the first category page. On the cat
Try this, it should work.had similar problem
'%_%',
'format' => '?' . $query_string . '&paged=%#%',
'current' => max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages,
'type' => 'array'
);
$pagination = paginate_links($pagination_args);
$big = 999999999; // need an unlikely integer
$links .= paginate_links(array(
'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
'format' => '?' . $query_string . '&paged=%#%&keyword='.$keyword,
'current' =>max(1, get_query_var('paged')),
'total' => $wp_query->max_num_pages
));
echo $links;
?>