Inconsistent URLs

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #186863

-- url of the page with the problem -- : www.iheartsin.com/
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- Browser(s) name and version -- : Chrome

I've been working this one for a while and I know it is going to be something easy, but I have spent hours and cannot figure out why my URLs are generating inconsistently.

www.iheartsin.com/accessories/category/legs
canonical url under this category is /accessories/category/legs

www.iheartsin.com/bedrooom/sexy-panties
canonical url under this category is/category/panty

HOWEVER, if I remove the "accessories" from the legs canonical url, I get a 404 error.

I looked at the Menu in Joomla it looks the same.

I have Forced Canonical in the configuration.

What setting am I missing?

In a related note, how do I remove the "product" as part of the URL below?

www.iheartsin.com/bedrooom/sexy-panties/product/panty-8644

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #186877

Hi,

You get this 404 because the url " www.iheartsin.com/accessories/category/legs " don't seem to be a valid one.
Do you have any menu which can provide this kind of url ?

For the "bedrooom/sexy-panties" link the canonical url is:

/bedrooom/sexy-panties/product/listing

and not

/category/panty


The canonical url set in the categories or products must be valid urls.
To remove "product" from the url you can edit the settings in Configuration > Features > SEF Urls

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #186951

I apologize. I don't think I understand any of the instructions below.

www.iheartsin.com/accessories/category/legs
www.iheartsin.com/bedrooom/sexy-panties

Both are valid (i.e. they work). My concern is they don't follow the same naming nomenclature. If I try and change the "leg" canonical url to match the "panty" url nomenclature, then I get a 404.

Let's start with what I would like the URL to look like and see how I can get there.

www.iheartsin.com/accessories//legs/hosiery-1797
Which breaks down as
/category/subcategory/productname

What is the correct way of setting up the canonical urls?

Thanks.

BTW, attached is the settings currently in the SEF Config. What did you need me to change to remove "product"?

Attachments:

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 7 months ago #187369

Hi,

I have some troubles to analyze your current configuration.
The menu "bedroom" (in the url have three "o" and not two) display the sub categories in the website ; despite the menu "accessories" does not.
It is possible that you change how you created the menu and the configuration while building the website ; it could explain why some categories have different canonical stored.

When you edit the category in the HikaShop backend, you can see the canonical url.
Regarding the SEF configuration, you specify that you want to use (and force) the canonical url in the listing.
So it could be useful to compare the configuration of the two menus and of the two categories.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #187844

Nice Catch on the typo. Still doesn't solve the issue, but thank you for helping with that. Oddly, can't seem to change it, apparently there is something else with a alias bedroom, but I cannot find it. I'll figure that out later.

For now, focusing on the URLs:

I went through the config as you suggested and they all look the same (screenshots below), but still getting "category" in the URL

www.iheartsin.com/accessories/category/legs

If I delete the canonical URL (/accessories/category/leggings) from the legs category, I still get the URL above. If I change the canonical URL by deleting the "category" in the URL I still get the 404.

So all together, still no change from prior issue. Any ideas?

Config for Bedroom
docs.google.com/file/d/0BwqOD0YBy-yINFgy...kE/edit?usp=drivesdk

Config for Accessories
docs.google.com/file/d/0BwqOD0YBy-yIMm9w...Wc/edit?usp=drivesdk

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #188115

I definitely have something misconfigured, but I cannot figure out what. I looked over all the configs and they look the same.

However, in addition the inconsistent URLs above, If someone searches for a category and tries to get to a category page direct it goes to a 404
www.iheartsin.com/category/teddy

As opposed to when they go through the menu
www.iheartsin.com/bedroom/teddy

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #188462

Hi Jerome,

Any chance you can help me with this issue. Last two messages from 5 days ago are below. Thanks for your help.

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #188720

Hi Jermone,

Can chance you can help me out on this issue. I'm struggling with 404s on my home page all related to this issue and I have not been able to get any help in 7 days...

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #188761

Hi,

In the URL www.iheartsin.com/accessories/category/legs the part "accessories" is the alias of the current menu item.
If you remove it from the URL, Joomla SEF system will think that "category" is the alias of the current menu item and will try to look for a menu item with the alias "category" so that it can give it the hand to process the page. As it won't find any, it will display a 404 error.
So that's the normal behavior here. Changing the HikaShop configuration won't help.
Canonical URLs are there to avoid duplicate issues with SEO, they are not there to allow you to put whatever URL you want for each URL. You can put in the "Canonical URL" field of a product/category" any valid link to the product/category so that the system uses it. If you put an invalid link (one that Joomla SEF doesn't understand) it won't work and you'll get 404 errors.

If you want URLs like this:
/category/subcategory/productname
you have two possibilities:
1. You configure one menu item for each category with the same tree as your categories. You should be able to enter the name of the category/menu item for the "category" and the "sub category" in the canonical URLs of the categories and the products as they will match with what Joomla excepts. That's however a lot of work and requires going over your menu item structure.
2. You use a 3rd party sef extension like sh404SEF which has a URL alias system allowing you to enter the URL you have and the URL you want instead and it will do the conversion for you automatically.

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #188797

Nicolas,

Thank you for the response. I understand what you are saying about the canonical not meant to put in any URL I want.
To my knowledge, I didn't intentionally put anything in the field, so what is there, I believe is what is auto generated.

Let's ignore the request for /category/subcategory/productname, since that will require sh404SEF (which currently breaks my template).

What should I do to get the categories consistent?

Right now the menu is generating the following URL: www.iheartsin.com/clubwear
But the category generates www.iheartsin.com/category/clubwear , goes to a 404

Can I do a mass action to change the menu's or category? If so, which one should I change? I did not intentionally try to make any complicated urls. Since I plan on using hikashop for other projects, what is the correct way to set up the alias and urls?

If I have a menu item that I call accessories with an alias of accessories, do I also have a category I call accessories with an alias I call accessories?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #188810

Hi,

I don't understand your sentence

But the category generates www.iheartsin.com/category/clubwear , goes to a 404

Categories do not generate anything. They have a link to them displayed somewhere on your website and the link can go to a valid page or generate a 404 error if something is not configured properly.
I checked your website but I couldn't find anywhere where the URL www.iheartsin.com/category/clubwear was used. All the URLs I could found going to the club wear page were using the same URL www.iheartsin.com/clubwear .
So I can't tell you what to change in your configuration so that it produces a valid URL as I don't know what is generating that URL. Could you provide more information on that ?

You can use mass actions on categories.
Personally, I wouldn't bother much on the URLs of my products. As long as it is somewhat OK, it's fine. The main thing is to avoid duplicates by entering one valid URL in each category/product. Letting HikaShop fill it for you is a good idea as it speeds up the process.

Aliases for products/categories are not really necessary for English. They are mainly for non latin languages where a latin letter representation of the name of the product is often necessary. If you have aliases fine, but don't bother with them.

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

  • Posts: 146
  • Thank you received: 2
10 years 7 months ago #189047

You're right. Sorry. Long night. Thank you for the assist.

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

Time to create page: 0.086 seconds
Powered by Kunena Forum