[Skip to main content](#vessel-content)

#   Duplicate urls for products

##

- **[stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")**
- [![stattgarde's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3836.png)](/forum/user/3836-stattgarde "View stattgarde's Profile") Topic Author
- [ Offline](/forum/user/3836-stattgarde)

Less More

- Posts: 13
- Thank you received: 0
-
- [](http://www.stattgarde.de)
-

15 years 1 month ago -  15 years 1 month ago [\#25184](#25184) by [stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")  *[Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25184 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")* was created by *[stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")*

Hi!
I have a problem with multiple product URLs in our shop at [ ](http://www.stattgarde.de/duty-free-shop)[ www.stattgarde.de/duty-free-shop](http://www.stattgarde.de/duty-free-shop).

The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a "filter by category" behavior.
When I see a product in the root page it has a link like

> [ /duty-free-shop/product/6-regenschirm-groß](http://www.stattgarde.de/duty-free-shop/product/6-regenschirm-gro%C3%9F)

When I click on the same item it in a sub-category, it has a link like

> [ /duty-free-shop/product/6-regenschirm-groß/category\_pathway-15](http://www.stattgarde.de/duty-free-shop/product/6-regenschirm-gro%C3%9F/category_pathway-15)

which is basically the same URL with the category-ID appended.

On top of that, I have a "related products" module which then adds **another suffix** to the URL:

> [ /duty-free-shop/product/6-regenschirm-groß/category\_pathway-15/related\_product-7](http://www.stattgarde.de/duty-free-shop/product/6-regenschirm-gro%C3%9F/category_pathway-15/related_product-7)

This makes **at least 4 URLs** (not taking in account products in multiple categories) for this product.
Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?

Kind regards,
Simon

Last edit: 15 years 1 month ago by [stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

15 years 1 month ago [\#25191](#25191) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25191 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Hi,

No, that's not possible. These additional parameters are necessary in order to generate a correct breadcrumb on the product page. Without them, the breadcrumb would always be the same one regardless from where the user is coming.
You would have been to have URL rewrite rules in your htaccess if you want to have only one URL, but your breadcrumb will always show the same path for a product regardless of the path your user used to come to that page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")**
- [![stattgarde's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3836.png)](/forum/user/3836-stattgarde "View stattgarde's Profile") Topic Author
- [ Offline](/forum/user/3836-stattgarde)

Less More

- Posts: 13
- Thank you received: 0
-
- [](http://www.stattgarde.de)
-

15 years 1 month ago [\#25241](#25241) by [stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")  Replied by *[stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25241 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Thanks for the help, I created a rewrite rule for that: Code:

RewriteCond %{REQUEST_URI} ^(/duty-free-shop/produkt/.*)/(category_pathway&#124;related_product)-[0-9]+$ RewriteRule .* %1 [R=301,L]

The breadcrumbs do not really matter because the structure used is very flat and there is no need for the categories to appear in the breadcrumbs.
Anyway, I don't see the reason, why related products should anything have to do with the breadcrumbs; that solution/feature seems kind of strange because it assumes a hierarchy between two related products. A config-option to disable that would be nice.

(If anybody has the same problem and wants to use the above solution, you have to substitute the part "/duty-free-shop/produkt/" to your site configuration [the first being the shop-menu-item-alias, the second the SEF-URL-configuration-value for products in Hikashop])

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

15 years 1 month ago [\#25245](#25245) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25245 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Thank you for the feedback. We'll look at adding an option for that in the future.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")**
- [![plantpotphil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2189-plantpotphil "View plantpotphil's Profile")
- [ Offline](/forum/user/2189-plantpotphil)

Less More

- Posts: 152
- Thank you received: 0
-
-
-

15 years 1 month ago -  15 years 1 month ago [\#25292](#25292) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  Replied by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25292 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

I'm having the same issue with my site and agree with Simon, it would be great to see this option in a future release.

Also, I'm going to try and set up the .htaccess rewrite code posted above. However, I'm new to editing an .htaccess file so would appreciate some help here...

OK so, our shop is in the main directory of our site and our SEF options are set as below:

image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/sef_options.png

So, would our rewrite rule be this?...
Code:

RewriteCond %{REQUEST_URI} ^(/category/.*)/(category_pathway&#124;related_product)-[0-9]+$ RewriteRule .* %1 [R=301,L]

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

- [ ![sef&#95;options.png](/forum/attachment/1737) ](/forum/attachment/1737 "sef&#95;options.png") [ ](/forum/attachment/1737?download=1 "sef&#95;options.png")

Last edit: 15 years 1 month ago by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

15 years 1 month ago [\#25293](#25293) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25293 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

The duty-free-shop/produkt part should be replaced by the alias of your menu as stattgarde said in his post, not by the value of the category SEF name option of the config.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")**
- [![plantpotphil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2189-plantpotphil "View plantpotphil's Profile")
- [ Offline](/forum/user/2189-plantpotphil)

Less More

- Posts: 152
- Thank you received: 0
-
-
-

15 years 1 month ago -  15 years 1 month ago [\#25294](#25294) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  Replied by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25294 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

oh yeah, sorry, my mistake.

I link to our shop via several category listings from the main menu. So would I use the alias of each of these menu items and have a new rewrite code for each? So for example, a menu which links to a category with the alias "furniture" would be:
Code:

RewriteCond %{REQUEST_URI} ^(/furniture/.*)/(category_pathway&#124;related_product)-[0-9]+$ RewriteRule .* %1 [R=301,L]

Bearing in mind settings in SEF are:

image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/sef_options.png

Thanks for any help,

Phil

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

Last edit: 15 years 1 month ago by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

15 years 1 month ago [\#25295](#25295) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25295 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

I suppose yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")**
- [![plantpotphil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2189-plantpotphil "View plantpotphil's Profile")
- [ Offline](/forum/user/2189-plantpotphil)

Less More

- Posts: 152
- Thank you received: 0
-
-
-

15 years 1 month ago [\#25298](#25298) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  Replied by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25298 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

I can't seem to get this to work (probably because I'm an idiot...)

I'm only interested in removing the "related_product" part at the end.

So, for example:

/furniture/30-small-chair
LINKS TO RELATED PRODUCT:
/furniture/31-medium-chair/related_product-30

Should be:

/furniture/30-small-chair
LINKS TO RELATED PRODUCT:
/furniture/31-medium-chair

I've added the following to the end of the .htaccess file:
Code:

RewriteCond %{REQUEST_URI} ^(/furniture/.*)/(related_product)-[0-9]+$ RewriteRule .* %1 [R=301,L]

Can anyone see why this might not work? :huh:

Phil

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

15 years 1 month ago [\#25305](#25305) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25305 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Do you have the mod_rewrite engine activated ?

If not, you should have the lines below before your code in the htaccess file:
Options +FollowSymLinks
RewriteEngine On

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")**
- [![plantpotphil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2189-plantpotphil "View plantpotphil's Profile")
- [ Offline](/forum/user/2189-plantpotphil)

Less More

- Posts: 152
- Thank you received: 0
-
-
-

15 years 1 month ago [\#25326](#25326) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  Replied by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25326 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

yeah those lines are part of the original joomla htaccess file near the top. I haven't altered them.

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

15 years 1 month ago [\#25329](#25329) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25329 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Then it should work. I'm afraid I don't have other ideas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")**
- [![plantpotphil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2189-plantpotphil "View plantpotphil's Profile")
- [ Offline](/forum/user/2189-plantpotphil)

Less More

- Posts: 152
- Thank you received: 0
-
-
-

15 years 1 month ago [\#25331](#25331) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  Replied by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25331 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Thanks for trying Nicolas, I'll keep plugging away and see if I can figure out which bit isn't playing ball!

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")**
- [![stattgarde's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar3836.png)](/forum/user/3836-stattgarde "View stattgarde's Profile") Topic Author
- [ Offline](/forum/user/3836-stattgarde)

Less More

- Posts: 13
- Thank you received: 0
-
- [](http://www.stattgarde.de)
-

15 years 1 month ago [\#25447](#25447) by [stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")  Replied by *[stattgarde](/forum/user/3836-stattgarde "View stattgarde's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25447 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

As dicussed via PM: remove the brackets in the last part of the expression Code:

RewriteCond %{REQUEST_URI} ^(/furniture/.*)/related_product-[0-9]+$ RewriteRule .* %1 [R=301,L]

and it should work

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mangastreamer](/forum/user/3889-mangastreamer "View Mangastreamer's Profile")**
- [![Mangastreamer's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3889-mangastreamer "View Mangastreamer's Profile")
- [ Offline](/forum/user/3889-mangastreamer)

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 1 month ago [\#25473](#25473) by [Mangastreamer](/forum/user/3889-mangastreamer "View Mangastreamer's Profile")  Replied by *[Mangastreamer](/forum/user/3889-mangastreamer "View Mangastreamer's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25473 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

I think the parameters are necessary in order to generate a correct breadcrumb. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")**
- [![plantpotphil's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2189-plantpotphil "View plantpotphil's Profile")
- [ Offline](/forum/user/2189-plantpotphil)

Less More

- Posts: 152
- Thank you received: 0
-
-
-

15 years 1 month ago [\#25483](#25483) by [plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")  Replied by *[plantpotphil](/forum/user/2189-plantpotphil "View plantpotphil's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#25483 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Thanks StattGarde, finally got it working!

I don't use a breadcrumb on our site so these changes are fine for me Mangastreamer.

---

Create your own style of luxury [ bespoke furniture](http://www.clothierjones.com) online

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[akcreation](/forum/user/4570-akcreation "View akcreation's Profile")**
- [![akcreation's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4570-akcreation "View akcreation's Profile")
- [ Offline](/forum/user/4570-akcreation)

Less More

- Posts: 47
- Thank you received: 1
-
-

13 years 8 months ago [\#89530](#89530) by [akcreation](/forum/user/4570-akcreation "View akcreation's Profile")  Replied by *[akcreation](/forum/user/4570-akcreation "View akcreation's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#89530 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

Hi there, was this problem ever sorted in newer versions of hikashop?

My client has this problem on his site. He only has 150 - 200 products, but due to all the related product URL's he literally has 1,000s of URL's generated.

I only want to have 1 URL per product, regardless of whether it is directed via a related product.

I have just purchased a new subscription and upgrade to v 2.1 (the shop was running on 1.6), but I see I still have the issue.

Please can someone advise what I need to do to fix this? (I have tried putting the code mentioned below into my htaccess file and it did nothing?)

Thanks for your help,

Keith

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 8 months ago [\#89663](#89663) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Duplicate urls for products](/forum/4-how-to/25184-duplicate-urls-for-products#89663 "Hi! I have a problem with multiple product URLs in our shop at .  The product-module associated to the menu item is set to show all products in all sub-categories to show every product on the front page. Additionally there is a category listing module in the sidebar to mimic a &quot;filter by category&quot; behavior. When I see a product in the root page it has a link like  When I click on the same item it in a sub-category, it has a link like  which is basically the same URL with the category-ID appended.  On top of that, I have a &quot;related products&quot; module which then adds another suffix to the URL:  This makes at least 4 URLs (not taking in account products in multiple categories) for this product. Is there a way to remove the redundant parts (category, related) of the URL (without elaborate rewrite-rules)?  Kind regards, Simon")*

As I said in your other topic, the last version of Hikashop should solve the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI1MTg0LWR1cGxpY2F0ZS11cmxzLWZvci1wcm9kdWN0cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.340 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
