If you use
$qstr = ‘http://www.spraakwater.net/?’ . $page_querystring . ‘=’ . $pagenum;
You’ll find another bug , if you go to your catagory pages or achive pages you’ll find the page-links are error,they will jump to index pages.
You may use this sigle line to replace it, then everything will go perfect.
$qstr = preg_replace(“#/*” . $index . “/*#”, ‘/’, $qstr);
that means to trim the $index