change url without using sh404 or sef extension

  • Posts: 37
  • Thank you received: 1
12 years 10 months ago #21395

Hi Nicolas,

I currently have a url issue like this.

I have created a menu to each products listing. eg: accessories.
I also have a menu to the top level product category itself (category listing).

When i go direct to accessories via menu i get url:

http://localhost/website/index.php/products/accessories

When i go there by clicking on the products menu, and then clicking on the accessories product listing in that category it uses url:
http://localhost/website/index.php/products/category/listing/11-accessories
:angry:

I would rather have my url's as simple as possible and have it just
http://localhost/website/index.php/products/accessories

How would i achieve this? I dont want to get a 3rd party sef url rewrite extension in there.

Many thanks in advance :)
Arathol

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

  • Posts: 81677
  • Thank you received: 13099
  • MODERATOR
12 years 10 months ago #21396

Hi,

You can change the code in the file components/com_hikashop/router.php in order to do what you want.

Otherwise, with sh404sef and some easy modification of the sef_ext.php file you should be able to achieve it: www.hikashop.com/en/support/forum/4-how-...04-sef-question.html

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

  • Posts: 37
  • Thank you received: 1
12 years 10 months ago #21400

Thanks Nicolas,

I did look at that post, before even starting this new thread, but I have no programming, let alone php, knowledge so I dont know what code to use or where to edit the files you told me.

I dont really want to use sh404 and would rather just change the original hikashop code.
Also, i see my products have a very long url as well with number in front of the name which I would rather not have and a /category_pathway-11 after the name of the product.

Please could you help me with a detailed description of what code to add and where to add it.

Thanks!

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

  • Posts: 81677
  • Thank you received: 13099
  • MODERATOR
12 years 10 months ago #21402

Hi,

The modification is too complex to be done here. It's out of the scope of that support forum. We don't even know yet how we want to do it for now.
We usually help people when the modification is easy but that will require several hours of work to do it properly.

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

  • Posts: 37
  • Thank you received: 1
12 years 9 months ago #21448

Thanks for the help. Ill have to sort it out once the rest of the site is done.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum