Info on URL

  • Posts: 184
  • Thank you received: 4
11 years 5 months ago #137396

-- url of the page with the problem -- : www.madeinvino.com/la-nostra-cantina.html
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.17

is there a standard wau to eliminate the label "/Product" when you open a product?

This is the URL of the generic view
www.madeinvino.com/la-nostra-cantina.html



This is product page
www.madeinvino.com/la-nostra-cantina/pro...nsupello-nature.html



Do you think is possible to transform the URL in www.madeinvino.com/la-nostra-cantina/85-monsupello-nature.html ?

Thanks & regards.

Attachments:

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

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
11 years 5 months ago #137552

Hi,

The "product" part of the URL comes from the "Product SEF name" option of the configuration. If you empty it, it will be removed.

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

  • Posts: 184
  • Thank you received: 4
11 years 5 months ago #138072

Hello Nicolas

thanks for your feedback.

I changed the parameter and it works.

Now I have a little problem, the old URL doen't work anymore,

For example this URL
www.madeinvino.com/la-nostra-cantina/pro...nsupello-nature.html
shows this page instead of the right page of the wine.



I used the redirect option of Joomla but it doesn't work. :(
SOURCE: www.madeinvino.com/la-nostra-cantina/pro...nsupello-nature.html
DESTINATION: www.madeinvino.com/la-nostra-cantina/85-monsupello-nature.html



Do you have any suggestion?

Thanks for your help

PS: For the moment I restored the previous configuration

Attachments:
Last edit: 11 years 5 months ago by Teto.

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

  • Posts: 83932
  • Thank you received: 13588
  • MODERATOR
11 years 5 months ago #138124

Yes of course, if you change that parameter then you need to use the new URLs.
You would have to add specific rules to your htaccess to redirect the old URLs to the new ones. Unfortunately, I'm not an expert in htaccess rules so I can only give you some links to htaccess rules tutorials:
stackoverflow.com/questions/11963402/hta...-replace-part-of-url
stackoverflow.com/questions/18316152/rep...reserve-query-string
httpd.apache.org/docs/2.0/misc/rewriteguide.html
sharp-coders.com/web-development/use-hta...he-url-url-rewriting
www.yourhtmlsource.com/sitemanagement/urlrewriting.html

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

  • Posts: 184
  • Thank you received: 4
11 years 5 months ago #138298

Hello Nicolas

thank you for your help. :)

I also am not an expert.
I did some test and this command seems solve my problem.

RewriteRule ^la-nostra-cantina/product/([0-9]+.*)$ www.madeinvino.com/la-nostra-cantina/$1 [L]

This syntax converts only the pages which begin with a number.
Without this option I find an error when I add a product to the cart.

I hope this can help someone else in the future. :)

The following user(s) said Thank You: nicolas

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

Time to create page: 0.082 seconds
Powered by Kunena Forum