How to avoid having “?ID” and “&page” in Urls?
-
Hi,
my 2.5.14 BBpress installation is running on WP 4.9.5.
Google suddenly indexed a list of urls with different “ids and pages appended”, here some examples:
- https://www.example.it/forum/topic/my-question/page/8
- https://www.example.it/forum/topic/my-question/page/8?id=my-question
- https://www.example.it/forum/topic/my-question/page/8?id=my-question&page=15
- https://www.example.it/forum/topic/my-question/page/8?id=my-question&page=2
- https://www.example.it/forum/topic/my-question/page/8?id=my-question&page=3
- https://www.example.it/forum/topic/my-question/page/8?id=my-question&page=4
- https://www.example.it/forum/topic/my-question/page/8?id=my-question&page=9
It only seems to happen with urls containing “/page/”.
How to prevent BBpress from creating these urls? I can’t find them in the source code of live pages, anywhere.
I can 301 redirect these urls with htaccess, but only after the problem is solved, otherwise Google spider would get into a very weird loop.
Furthermore, having all this duplicate content indexed is very bad for seo.
Thank you,
the Process
- The topic ‘How to avoid having “?ID” and “&page” in Urls?’ is closed to new replies.