- Posts: 102
COMMUNITY FORUM
duplicate pages
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
7 years 1 month ago #161006
by German Levi
duplicate pages was created by German Levi
hi. there is a problem. the duplicate pages. site.com/category/category/sef-url and site.com/category/id and site.com/id. where id is the number of records in a mysql table. Joomla SEF and K2 is turn on. What to do with this problem?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 1 month ago #161015
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic duplicate pages
You can use a canonical link extension so all the links point to a single item.
Alternatively an SEO/SEF extension can provide redirects.
Alternatively an SEO/SEF extension can provide redirects.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Peter k
- Offline
- New Member
Less
More
- Posts: 1
7 years 1 month ago #161061
by Peter k
Replied by Peter k on topic duplicate pages
Hi, you can fix this problem by fixing dynamic links in your website. More info fine this site.
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 1 month ago #161085
by German Levi
Replied by German Levi on topic duplicate pages
It's a work-related component? Where to find the plugin for canonical? It is paid?
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 1 month ago #161086
by German Levi
Replied by German Levi on topic duplicate pages
The problem is solved in the following way.
// custom redirect
if ( $this->item->link != JRequest::getURI() ) {
$app = JFactory::getApplication();
$app->redirect($this->item->link,true);
}
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 weeks ago #161148
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic duplicate pages
Kudos German :)
Although you can set this as a canonical link using Joomla!"s API in order to avoid a redirect.
Although you can set this as a canonical link using Joomla!"s API in order to avoid a redirect.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 4 weeks ago #161169
by German Levi
Replied by German Levi on topic duplicate pages
Krikor, not all search engines know about the canonical link.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 4 weeks ago #161184
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic duplicate pages
Google does, Yahoo, Bing and Yandex do as well, so this is pretty much all of them.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- German Levi
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 102
7 years 3 weeks ago #161263
by German Levi
Replied by German Levi on topic duplicate pages
Realized I Krikor. However, I have a new problem. Duplicate pages with a slash at the end. Here's an example: site.com/category/alias and site.com/category/alias/ and site.com/category/alias// and these slashes can be many. These are all links work and give the exact same page. If I do a redirect from the page with the slash on the page without the slash in the htaccess file that stops working component of the review. There is a lot of redirects. This problem on many sites where there is K2 and enabled K2 SEF and Joomla. What to do?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 3 weeks ago #161270
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic duplicate pages
Can you send me an example please?
Also you can use str_replace. Once more, I am a fan of canonical tags, they serve the same purpose without the need to redirect.
SEO-wise in all major search engines it is exactly the same thing.
Also you can use str_replace. Once more, I am a fan of canonical tags, they serve the same purpose without the need to redirect.
SEO-wise in all major search engines it is exactly the same thing.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.