cuca
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wrong previous / next links and options-updatesHello!
I’m glad I found a solution.WordPress 2.0.4
Open wp-includes/template-functions-links.php
Line 440
Change// showing /page/1/ or ?paged=1 is redundant if ( 1 === $pagenum ) { $qstr = str_replace('page/1/', '', $qstr); // for mod_rewrite style $qstr = remove_query_arg('paged', $qstr); // for query style } return $qstr; }
to
// showing /page/1/ or ?paged=1 is redundant if ( 1 === $pagenum ) { $qstr = str_replace('page/1/', '', $qstr); // for mod_rewrite style $qstr = remove_query_arg('paged', $qstr); // for query style } # new line for pagelinks $qstr = 'https://www.yourdomain.com/?' . $page_querystring . '=' . $pagenum; return $qstr; }
WordPress 2.1.2
open wp-includes/link-template.php
Line 441
Change// showing /page/1/ or ?paged=1 is redundant if ( 1 === $pagenum ) { $qstr = str_replace('page/1/', '', $qstr); // for mod_rewrite style $qstr = remove_query_arg('paged', $qstr); // for query style } return $qstr; }
to
// showing /page/1/ or ?paged=1 is redundant if ( 1 === $pagenum ) { $qstr = str_replace('page/1/', '', $qstr); // for mod_rewrite style $qstr = remove_query_arg('paged', $qstr); // for query style } # new line for pagelinks $qstr = 'https://www.yourdomain.com/?' . $page_querystring . '=' . $pagenum; return $qstr; }
Obviously if you have a subdomain you’ll have to add:
# new line for pagelinks $qstr = 'https://yoursubdomain.yourdomain.com/?' . $page_querystring . '=' . $pagenum;
Thanks to article who pointed me to the right direction.
It’s not a definitive solution, once you change your domain you will have to edit your url again but at least it works.Have a nice day!
Forum: Fixing WordPress
In reply to: wrong previous / next links and options-updatesSame here:
Everything is ok on main page. Link to older post is
https://intersezioni.awardspace.com/index.php?paged=2but at the bottom of this page links to older and newer posts are:
https://intersezioni.awardspace.com/https://intersezioni.awardspace.com/index.php?paged=3
https://intersezioni.awardspace.com/https://intersezioni.awardspace.com/index.phpinstead of
https://intersezioni.awardspace.com/index.php?paged=3
https://intersezioni.awardspace.com/index.phpIs there a way to avoid this problem?
Do I have to edit something or it’s a server issue?
I’m running WP 2.1.2 with no plugins and this problem occours with any template.Thanks in advance.