Your advice on Alias - Canonical - SEF Settings

  • Posts: 52
  • Thank you received: 1
  • Hikashop Business
7 years 9 months ago #275641

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.4

Hello,
I am newbie and a little bit confused with SEF so I need your advice on how to correctly set alias and canonical URLs on categories, products and menu items on my site (e.g. mysite.com )

What I did:

1st Product: name: Test Product 1
Categories: Dog products
Alias: test-product-1
Canonical URL: test-product-1

Category name: Dog products
Parent category: product_category
Alias: dog-products
Canonical: dog-products

Category (subcategory) name: Dog food products
Parent category: Dog products
Alias: dog-food-products
Canonical: dog-food-products

Menu Item name: Dog products
Menu Item Type: Hikashop > Products listing (data display from Dog products category)
Alias: dog-products

Joomla Site Settings:
Search Engine Friendly URL's: YES
User URL Rewriting: Yes

Hikashop SEF URL Options:
Simplified breadcrumbs: Yes
Remove products and categories id in URLs: Yes
Force canonical URLs on listings: Use canonical URL if specified
Category SEF name: category (but i want to delete it so to have shorter URLs)
Product SEF name: (none)
Checkout SEF name: checkout
Alias automatic filling: Yes
Automatic product keywords and metadescription filling: No

My questions:
1. Can I remove Category SEF name?

2. My product's URL is mysite.com/test-product-1
Correct?

3. My main category's URL is mysite.com/dog-products
Correct? If no, what is the correct URL

4. What is my subcategory's URL?

5. My menu item's URL is mysite.com/dog-products
Correct?
If yes, Joomla don't confused with category's URL?

6. Are Alias and Canonical URLs settings correct?

I would appreciate all your useful advices.

Last edit: 7 years 9 months ago by xatzopou.

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

  • Posts: 83799
  • Thank you received: 13570
  • MODERATOR
7 years 9 months ago #275678

Hi,

1. You can but in that case, you need to specify a product SEF name. There is no way for now to be able to empty both or the system doesn't know if you want to display categories or products when a URL is requested.

2. Hard to say yes or no.
It's only correct if the default menu item on your website is either a HikaShop products listing or a HikaShop categories listing.
Otherwise, the menu item alias must precedes the product alias in the URL as per Joomla's SEF system requirements.
So in such case the canonical URL of the product should be: dog-products/test-product-1

3. Supposing that your menu item is at the root of your menu items tree and that the main category selected in your menu item settings is the category "Dog products", then that URL is "correct" for that "Dog products" category and you can use it in the canonical URL field of that category.

4. The URL will be:
mysite.com/dog-products/category/dog-food-products
And thus you should have dog-products/category/dog-food-products in the canonical URL field.

5. That's correct. And no, Joomla doesn't confuse because that is not the real category URL. The real one is mysite.com/dog-products/category/dog-products
It's able to understand without the category/dog-products part because that category is selected in the "main category" setting of the menu item.

6. My answers to the previous points already cover the things that are problematic.

The following user(s) said Thank You: xatzopou

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

Time to create page: 0.053 seconds
Powered by Kunena Forum