VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: VB74 on February 01, 2023, 15:49:08 PM

Title: Problems with URL in Virtuemart
Post by: VB74 on February 01, 2023, 15:49:08 PM
Hello everyone,

I have 2 different issues with URLs in Virtuemart :


1 ) I managed to cancel "index.php" in the URLs of Virtuemart but Google indexed a lot of pages with index.php. Is there a possibility to redirect massively URLs including "index.php" to URLs without "index.php" ?

Example : I click on the Google result : "https://www.mydomain.fr/fr/index.php/x/y/z/"  then I will be redirected to  "https://www.mydomain.fr/fr/x/y/z/"



2) I have a lot of Virtuemart contents indexed on Google (on the first pages) with unfriendly URLs.
I actived SEF URLS in Joomla configuration and follow a lot of advice on the internet. I managed to have friendly URLs in my shop for all contents available from the store (example : https://www.mydomain.fr/en/products-e-shop/hoses/polyamide-hoses), but I still have unfriendly URLs (I discovered it with Google results).

Example of problem :Page indexed by Google : https://www.mydomain.fr/index.php/fr/component/virtuemart/?language=fr-FR&orderby=mf_name&limit=200&start=3800

It's the complete list of products of my Virtuemart shop. I don't even know how to access to this page by the frontend of the shop. Is there a solution for making this URL SEF friendly ?

I was thinking about add in the robot.txt file "Disallow: /component/", but I'm not sure it's a good idea.

Do you have solutions ?

Thank you in advance for your help.

Valentin

Title: Re: Problems with URL in Virtuemart
Post by: pinochico on February 01, 2023, 22:04:34 PM
You have a lot of mistake with setup Joomla and VirtueMart and SEF.
- index.php? - bad setup Joomla sef
- component? - missing menu for VirtueMart
- language? - bad setup Joomla language I think

> Disallow: /component/

Is big mistake from a lot of experts :)
Title: Re: Problems with URL in Virtuemart
Post by: VB74 on February 02, 2023, 17:38:56 PM
Hello pinochico,

Thanks for your reply.

- I managed to cancel index.php?, that's ok.

- For Virtuemart, how do you do for the menu ? I did that : Menu link -> Virtuemart Category -> Main category.

- My website is in French and English, the only setup I found is the global configuration set to "Global configuration (fr-FR)".


I don't understand what I did wrong.