Can we create aliases to remove duplicate urls?

  • Posts: 190
  • Thank you received: 2
10 years 6 months ago #190959

-- url of the page with the problem -- : apf.cloudaccess.net/individual/product/140-the-forgotten-dream
-- HikaShop version -- : 2.3.5 Essential
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : 5.3.29
-- Error-message(debug-mod must be tuned on) -- : no error message

On my site now I have been trying to link to the products from two different menus.

I have one menu that is the main navigation menu and here is the url of one of the products:

apf.cloudaccess.net/dvd/scripture/produc...-the-forgotten-dream

I also created a menu in the sidebar so people can find the content via a diffeerent path. But, I was hoping there would be a way to create an 'alias' to a product instead of another product page. As you can see I have a separate URL to the exact same product:

apf.cloudaccess.net/individual/the-forgotten-dream

I am hoping to figure out a way for both of the links to go to the same URL.

Any ideas on how we might accomplish this?

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
10 years 6 months ago #191003

See the documentation for "Force canonical URLs on listings": hikashop.com/support/support/documentati...ig.html#features_sef


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: scarney

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #190973

Hi,

You can use the canonical urls. In the product edition page, just fill the canonical url field with the desired link (a valid one).
Then in Configuration > Features > SEF url options, set the option "Force canonical URLs on listings" to "Use canonical url if specified".

OR use the value "Use canonical url and generate it if missing", with that option you don't have to fill the canonical url manually for each products, the field will be populated when browsing the product from one link.

This way only one link will be used for the product no matter from which menu/module you come from.

The following user(s) said Thank You: scarney

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
10 years 6 months ago #191080

Xavier, This worked pretty well. There are a couple of URLs that I am thinking did not work properly but maybe they are not supposed to. I have an accordion menu in the left hand column with sub-items that now have the canonical urls:

Here are the two canonical urls that are from the main menu under DVD:
apf.cloudaccess.net/dvd/product/the-forgotten-dream
apf.cloudaccess.net/dvd/product/the-most...he-ultimate-timeline

Here are the urls now for the same two items via the left hnd DVD Packaging Availability menu:
apf.cloudaccess.net/individual/the-forgotten-dream
apf.cloudaccess.net/individual/the-most-incredible-prophecy

The way I created these two items in the DVD Packaging Availability menu was to create links to the HikaShop products

If these urls can't go to the canonical urls then maybe what I will do is change those links to a System Link -> External link and then just hard code the canonical urls?

Last edit: 10 years 6 months ago by scarney.

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #191085

Yes. That would be better. HikaShop can only set the canonical URLs if it is itself which generates the HTML with the link in it. If this case that's not HikaShop but Joomla which does that, which is why it doesn't use the canonical URL setting, so forcing it to use the link you want will be the solution as you guessed.

The following user(s) said Thank You: scarney

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 2
10 years 6 months ago #191196

Makes perfect sense. Thank you for the clarification. It certainly did work as you suggested! So, I am very happy about that!

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum