Duplicate URL issue on phpBB forum affecting Google indexing

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
thegioiluatsu
Registered User
Posts: 48
Joined: Wed Dec 23, 2020 12:10 pm

Duplicate URL issue on phpBB forum affecting Google indexing

Post by thegioiluatsu »

Hello everyone,

I'm encountering an issue related to Google indexing when using the phpBB platform for my forum. Currently, the same post can be accessed through multiple different URLs, for example:

This article of mine has up to 3 urls indexed by Google.

Code: Select all

https://diendan.hocluat.vn/viewtopic.php?t=11027
https://diendan.hocluat.vn/viewtopic.php?p=13276
https://diendan.hocluat.vn/viewtopic.php?f=42&t=11027&p=13276
Image

This is causing Google to index these URLs as separate pages, leading to duplicate content issues, which might negatively impact the SEO of the forum.

I would like to ask if there's a way to resolve this issue? Is it possible to configure phpBB so that only one URL is used and indexed? If there's any extension or setting to optimize this, I would greatly appreciate your guidance.

Thank you all!
I come from Vietnam and I love phpBB. Sorry guys because I don't know English. I have used google translate to be able to communicate with you guys at this forum. Here is my product: diễn đàn luật tự học luật
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6412
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Duplicate URL issue on phpBB forum affecting Google indexing

Post by thecoalman »

phpBB uses canonical url in the the head tag, if you check each of those URL's it's set to.

Code: Select all

<link rel="canonical" href="https://diendan.hocluat.vn/viewtopic.php?t=11027">
The purpose of that is so search engine knows it's duplicate content. Why they would all be showing up in search results you'll need to ask Google.

What you can do is use robots.txt to block those links with parameters like p= using wildcard.

https://developers.google.com/search/do ... robots_txt
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison

Return to “phpBB Discussion”