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

#   Hikashop Canonical url for deleted aliases

##

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

Less More

- Posts: 28
- Thank you received: 0
-
-

11 years 1 month ago [\#214162](#214162) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  *[Hikashop Canonical url for deleted aliases](/forum/2-general-talk-about-hikashop/879276-hikashop-canonical-url-for-deleted-aliases#214162 "Dear developers,  You need a button somewhere, or a mass action, that checks if a products canonical url is correct. If you delete an alias (menu, module, etc.) that is used in a canonical url, the resulting canonical url leads to a 404.  I changed a bunch of alias on the backend for various modules. This resulted in a bunch of products leading to 404. When I checked the database &#95;&#95;hikashop&#95;product, under the column product&#95;canonical, I was greeted to a huge mess of old/non-existing canonical urls from way back when I was first testing hikashop, doh. I updated the table and set all product's canonical urls' to blank.  Perhaps when you update a alias (delete/modify), you check all products canonical urls and update them if needed. (ie. delete = set canonical url to blank; modify = set canonical url to new alias). Also a button would be nice, or a mass action as said above that can regularly check if canonical urls are correct / aliases used in a canonical url is available.")* was created by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")*

Dear developers,

You need a button somewhere, or a mass action, that checks if a products canonical url is correct. If you delete an alias (menu, module, etc.) that is used in a canonical url, the resulting canonical url leads to a 404.

I changed a bunch of alias on the backend for various modules. This resulted in a bunch of products leading to 404. When I checked the database __hikashop_product, under the column product_canonical, I was greeted to a huge mess of old/non-existing canonical urls from way back when I was first testing hikashop, doh. I updated the table and set all product's canonical urls' to blank.

Perhaps when you update a alias (delete/modify), you check all products canonical urls and update them if needed. (ie. delete = set canonical url to blank; modify = set canonical url to new alias). Also a button would be nice, or a mass action as said above that can regularly check if canonical urls are correct / aliases used in a canonical url is available.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3OTI3Ni1oaWthc2hvcC1jYW5vbmljYWwtdXJsLWZvci1kZWxldGVkLWFsaWFzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

11 years 1 month ago [\#214176](#214176) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Canonical url for deleted aliases](/forum/2-general-talk-about-hikashop/879276-hikashop-canonical-url-for-deleted-aliases#214176 "Dear developers,  You need a button somewhere, or a mass action, that checks if a products canonical url is correct. If you delete an alias (menu, module, etc.) that is used in a canonical url, the resulting canonical url leads to a 404.  I changed a bunch of alias on the backend for various modules. This resulted in a bunch of products leading to 404. When I checked the database &#95;&#95;hikashop&#95;product, under the column product&#95;canonical, I was greeted to a huge mess of old/non-existing canonical urls from way back when I was first testing hikashop, doh. I updated the table and set all product's canonical urls' to blank.  Perhaps when you update a alias (delete/modify), you check all products canonical urls and update them if needed. (ie. delete = set canonical url to blank; modify = set canonical url to new alias). Also a button would be nice, or a mass action as said above that can regularly check if canonical urls are correct / aliases used in a canonical url is available.")*

Hi,

Thank you for your input.
Checking if a canonical URL is correct or not with a button is not really possible as it's impossible to generate all the possible URLs of a product page, and sometimes, you want to configure a canonical URL that isn't one of the generated ones.
HikaShop doesn't generate the canonical URLs unless you tell it to. So if you fill the canonical URL with a wrong URL it's your responsability. Best is to leave that field empty unless you know what you're doing.
And if you want to clear all the canonical URLs in a go, it's possible with a mass action with an action "update the values" on the "product_canonical" column.
There are probably things we could improve with the current situation in order to make the system more foolproof, but it's not easy to have a one size fit all check on that. Otherwise, we wouldn't need a canonical URL field at all if we could guess what the canonical URL should be ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3OTI3Ni1oaWthc2hvcC1jYW5vbmljYWwtdXJsLWZvci1kZWxldGVkLWFsaWFzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 2697
- Thank you received: 74
-
-

11 years 1 month ago [\#214196](#214196) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Hikashop Canonical url for deleted aliases](/forum/2-general-talk-about-hikashop/879276-hikashop-canonical-url-for-deleted-aliases#214196 "Dear developers,  You need a button somewhere, or a mass action, that checks if a products canonical url is correct. If you delete an alias (menu, module, etc.) that is used in a canonical url, the resulting canonical url leads to a 404.  I changed a bunch of alias on the backend for various modules. This resulted in a bunch of products leading to 404. When I checked the database &#95;&#95;hikashop&#95;product, under the column product&#95;canonical, I was greeted to a huge mess of old/non-existing canonical urls from way back when I was first testing hikashop, doh. I updated the table and set all product's canonical urls' to blank.  Perhaps when you update a alias (delete/modify), you check all products canonical urls and update them if needed. (ie. delete = set canonical url to blank; modify = set canonical url to new alias). Also a button would be nice, or a mass action as said above that can regularly check if canonical urls are correct / aliases used in a canonical url is available.")*

I do that job directly with MySQL
1) I create the alias
2) I create canonical from alias

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg3OTI3Ni1oaWthc2hvcC1jYW5vbmljYWwtdXJsLWZvci1kZWxldGVkLWFsaWFzZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.085 seconds

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