Canonical URLs broken when permalink structure set to default
-
As in the title. When permalinks are set as default AIOSEP canonical urls are broken (they return url to non-existent 404 page).
The problem is that your code doesn’t take this into consideration (default permalink structure). This should be checked inside your get_paged function. One of the options is
if(!empty( $wp_rewrite ) && !$wp_rewrite->using_permalinks()) {
return add_query_arg(‘paged’, $page, $link);
}
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Canonical URLs broken when permalink structure set to default’ is closed to new replies.