Putting Category Back into the URL

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Putting Category Back into the URL

Post by kwikstand » Thu Sep 08, 2016 4:23 am

Is there a way to put the category back in to the URL?

I know a product can be in multiple categories, but the canonical link should take care of duplicate issues, shouldn't it?

My SEO guy is asking so he can tune up my SEO.

Also, there are various things you can do that require the category to be in the url. For example, "Get Site Control" allows you to display pop-ups and the like and you can designate the url structure to display, like: http://www.website.com/categroy/* Also, AdRoll let's you display specific remarketing ads according to the categories someone has viewed, but you need the category in the URL.
Contractor's Solutions
www. contractors-solutions.net

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Putting Category Back into the URL

Post by Katie » Fri Sep 09, 2016 2:12 am

Hello,

Have you thought about entering a custom URL that includes the category name?

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Back into the URL

Post by kwikstand » Fri Sep 09, 2016 2:24 am

Yes, but it doesn't work. It breaks the page. Also, I would have to do every single product.
Contractor's Solutions
www. contractors-solutions.net

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Putting Category Back into the URL

Post by Katie » Fri Sep 09, 2016 2:45 am

I don't think it breaks the page because that is what the custom URL field is meant for. Just look at the example below the field.

e.g. Fiction/Mystery/The-Confession.aspx

Here is a product using the example above -
http://azure.ablecommerce.com/Fiction/M ... ssion.aspx

I would also get familiar with the Data Exchange features. Very powerful. It would make this change super easy. All you have to do is export all your products to a CSV file, make the URL changes as desired, and then re-upload them. Done.

Otherwise, you may be looking at some serious customizations in the source code.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Back into the URL

Post by kwikstand » Fri Sep 09, 2016 3:58 am

When I add a folder to the url, it breaks the page, the page doesn't load and I get a 404 error. For example, if I take a product with a url product.aspx and make it category/product.aspx, the page won't work anymore. It throws the error: 404 - File or directory not found.
Contractor's Solutions
www. contractors-solutions.net

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Putting Category Back into the URL

Post by Katie » Fri Sep 09, 2016 4:05 am

What do you have in the Custom URL field of the product editing page?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Back into the URL

Post by kwikstand » Fri Sep 09, 2016 6:44 am

Here is one: work-shirts/flannel-shirt.aspx

I put "work-shirts/" before the normal "flannel-shirt.aspx"
Contractor's Solutions
www. contractors-solutions.net

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Putting Category Back into the URL

Post by Katie » Fri Sep 09, 2016 7:19 am

I don't know why it's not working for you. I can put in "work-shirts/flannel-shirt.aspx" and it works fine in my install.

Is there anything in the error log?

Make sure that you don't have any conflicting redirects setup in IIS or within AbleCommerce. This feature is used extensively and no one has reported any issues with it.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Putting Category Back into the URL

Post by kwikstand » Wed Sep 14, 2016 3:30 am

Well, I am just getting back to this. I tried it again with a different product and it seems to work, as long as I refresh the category page before I click the link. The problem now is, the old url doesn't work, so any links to it don't work. I guess that would have to be done with a redirect.

Also, the images don't work either.
Contractor's Solutions
www. contractors-solutions.net

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Putting Category Back into the URL

Post by mazhar » Wed Sep 14, 2016 8:42 pm

For old URL you will need to have a redirect configured. Once you have a product configured via custom URL the old one won't work. System needs a redirect to make sure old one points to new URL.

Post Reply