Page 1 of 1

Duplicate page/URL issue

Posted: Sat May 05, 2018 4:38 pm
by networkingstudy
Hi,

in global configuration i have -

Search Engine Friendly URLs - Yes
Use URL Rewriting - Yes
Add Suffix to URL - Yes.

Now, you can access same URL with two type that is a issue.

Example -
https://www.example.com/interview-qa/37 ... -directory
https://www.example.com/interview-qa/37 ... ctory.html

I want that, only one url can work.

Re: Duplicate page/URL issue

Posted: Sat May 05, 2018 6:35 pm
by changlee
Do you have any cache enabled?

Re: Duplicate page/URL issue

Posted: Sun May 06, 2018 6:10 am
by networkingstudy
Yes i have cache enabled, but i have already clear whole cache and reset the browser then check again but same result.

Re: Duplicate page/URL issue

Posted: Sun May 06, 2018 2:14 pm
by vpnif
Maybe you can change a computer to test

Re: Duplicate page/URL issue

Posted: Mon May 07, 2018 7:30 am
by changlee
You have to disable EVERY Cache plugin. Joomla conservative cache. Server Cache. CloudFlare cache (if any).

And then use a new icognito browser, or vpnif posted, check from different PC. Can you share your URL please?

Re: Duplicate page/URL issue

Posted: Wed May 09, 2018 6:32 am
by Crackleplus
I faced same kind of problem a year ago. The answer is still mystery.

Re: Duplicate page/URL issue

Posted: Wed May 09, 2018 7:52 am
by changlee
There are no Joomla misteries men :-)

Re: Duplicate page/URL issue

Posted: Tue Jun 05, 2018 3:12 pm
by shumisha
Hi

This is how the Joomla router works. It's actually worse than that, it will return the same page based on the id so:

https://www.joomla.org/announcements/re ... lease.html
https://www.joomla.org/announcements/re ... -8-release
https://www.joomla.org/announcements/re ... omla-3-8-8
https://www.joomla.org/announcements/re ... 730-joomla
https://www.joomla.org/announcements/release-news/5730

will all return the same content - without a canonical tag.

Note that this become an issue only if there are actual links to those different versions. So for instance, if you have links anywhere on your site or on other people sites to both:

https://www.example.com/interview-qa/37 ... -directory

and

https://www.example.com/interview-qa/37 ... ctory.html

Then you have a small issue. If you make sure that all links are with an .html suffix then search engines won't find and index them, and there will be no issue.

Best regards

Re: Duplicate page/URL issue

Posted: Fri Aug 03, 2018 8:06 pm
by Diaab
Try to make use of Rel="canonical" read more about canonicals from this tutorial
https://www.danielmorell.com/blog/how-t ... nical-tags

Re: Duplicate page/URL issue

Posted: Sun Aug 12, 2018 5:18 am
by digitalkube
Faced the same issue a few days back. Here's what I did: resaved permalinks settings, cleared cache, tried in incognito and it worked.

Although I suggest you to make use of Canonical tags to avoid any duplicate content penalty.

Re: Duplicate page/URL issue

Posted: Thu Dec 06, 2018 10:36 am
by changlee
That is also working for me the most of the times!

Re: Duplicate page/URL issue

Posted: Thu Dec 06, 2018 11:17 am
by delacroix1505
You could use redirect option or insert a nicely canonical tag in your site. I have just use a recently developed extension call "Custom canonical": https://extensions.joomla.org/extension ... canonical/. I think it easy to use.

Re: Duplicate page/URL issue

Posted: Fri Dec 07, 2018 5:12 pm
by lefteriskavadas
As @shumisha correctly wrote, this is a bug of the Joomla router. However, you have the option to switch to the new router. Just navigate to "Content" -> "Articles" -> "Options" and set the "URL Routing" option to "modern". Make sure to leave the option "Remove IDs from URLs" to "No" so your URLs do not change.

You might also want to use a SEO plugin from the extensions directory.

Regards