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

#   sh404 SEF question

##

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

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 4 months ago [\#21310](#21310) by [waveforcemedia](/forum/user/3094-waveforcemedia "View waveforcemedia's Profile")  *[sh404 SEF question](/forum/4-how-to/21310-sh404-sef-question#21310 "Was curious to know how to edit some of the URL's.  Currently, it looks like the URL's are going to:  domain.com/category/product/show/item.......  Is there a way to remove the product/show?")* was created by *[waveforcemedia](/forum/user/3094-waveforcemedia "View waveforcemedia's Profile")*

Was curious to know how to edit some of the URL's.

Currently, it looks like the URL's are going to:

domain.com/category/product/show/item.......

Is there a way to remove the product/show?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMzEwLXNoNDA0LXNlZi1xdWVzdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#21323](#21323) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: sh404 SEF question](/forum/4-how-to/21310-sh404-sef-question#21323 "Was curious to know how to edit some of the URL's.  Currently, it looks like the URL's are going to:  domain.com/category/product/show/item.......  Is there a way to remove the product/show?")*

You could use sh404sef aliases to modify the URLs to what you want.
Otherwise, you would have to edit the file components/com_hikashop/sef_ext.php and add the code
if($query=='product' &amp;&amp; $query=='show'){
unset($query);
unset($query);
}

after the code:
unset($query);

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

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

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 4 months ago [\#21362](#21362) by [waveforcemedia](/forum/user/3094-waveforcemedia "View waveforcemedia's Profile")  Replied by *[waveforcemedia](/forum/user/3094-waveforcemedia "View waveforcemedia's Profile")* on topic *[Re: sh404 SEF question](/forum/4-how-to/21310-sh404-sef-question#21362 "Was curious to know how to edit some of the URL's.  Currently, it looks like the URL's are going to:  domain.com/category/product/show/item.......  Is there a way to remove the product/show?")*

Do I need to add this specifically to a certain spot in the file?

I just added it towards the bottom. Sorry not much php experience.

unset($query);
if(!empty($query)){
foreach($query as $name =&gt; $value){
$segments\[\] = $name.':'.$value;
}
}
if($query=='product' &amp;&amp; $query=='show'){
unset($query);
unset($query);
}
unset($query);
return implode('/',$segments);
}
}

Did I add it in correctly?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMzEwLXNoNDA0LXNlZi1xdWVzdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#21368](#21368) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: sh404 SEF question](/forum/4-how-to/21310-sh404-sef-question#21368 "Was curious to know how to edit some of the URL's.  Currently, it looks like the URL's are going to:  domain.com/category/product/show/item.......  Is there a way to remove the product/show?")*

No. You added the code:
if($query=='product' &amp;&amp; $query=='show'){
unset($query);
unset($query);
}
unset($query);

I told you to add only the code:
if($query=='product' &amp;&amp; $query=='show'){
unset($query);
unset($query);
}

I also told you to add that code after the code:
unset($query);

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

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

Less More

- Posts: 32
- Thank you received: 0
-
-

15 years 4 months ago [\#21371](#21371) by [waveforcemedia](/forum/user/3094-waveforcemedia "View waveforcemedia's Profile")  Replied by *[waveforcemedia](/forum/user/3094-waveforcemedia "View waveforcemedia's Profile")* on topic *[Re: sh404 SEF question](/forum/4-how-to/21310-sh404-sef-question#21371 "Was curious to know how to edit some of the URL's.  Currently, it looks like the URL's are going to:  domain.com/category/product/show/item.......  Is there a way to remove the product/show?")*

Sorry Nicolas,

Got it, but still getting an error. Understand I may have to use the alias but don't want to do that manually for each one.

Also getting a product/listing in the url for category listings. Is there a way to fix that?

Here is the code now:

unset($query);
if($query=='product' &amp;&amp; $query=='show'){
unset($query);
unset($query);
}
if(!empty($query)){
foreach($query as $name =&gt; $value){
$segments[] = $name.':'.$value;
}
}
return implode('/',$segments);
}
}

Site: [ www.dribbleduds.com](http://www.dribbleduds.com)

I purged URL's, deleted cache and still getting the url.

Hope I still did it right.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMzEwLXNoNDA0LXNlZi1xdWVzdGlvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#21374](#21374) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: sh404 SEF question](/forum/4-how-to/21310-sh404-sef-question#21374 "Was curious to know how to edit some of the URL's.  Currently, it looks like the URL's are going to:  domain.com/category/product/show/item.......  Is there a way to remove the product/show?")*

That should have done it. I don't have other suggestions for that.

You could try a similar modification for the category listings:
if($query=='category' &amp;&amp; $query=='listing'){
unset($query);
unset($query);
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIxMzEwLXNoNDA0LXNlZi1xdWVzdGlvbj90bXBsPW1hcmtkb3du) 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.066 seconds

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