VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: nino59 on October 27, 2015, 08:24:01 AM

Title: How to activate SEO for products url?
Post by: nino59 on October 27, 2015, 08:24:01 AM
Hi,

I have Joomla 3.4.5 + VM 3.0.10

I enable SEO in Joomla> Global config> Site
Search Engine Friendly URLs: yes
Use URL Rewriting: yes

and VM> Configuration > SEO
SEO Disabled: unchecked
Seo Suffix   : -detail
Translate Strings: unchecked   
Use Product and Category IDs   : unchecked

---------------------

I get some results as the VM categories are SEF.
www.website.com/categoryA
www.website.com/categoryB
www.website.com/categoryC
etc...

But it didn't work for product details page, because I get:
www.website.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=2&virtuemart_category_id=16&Itemid=326
www.website.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=4&virtuemart_category_id=16&Itemid=326
etc...

How to SEF these urls?
What did I miss?
Title: Re: How to activate SEO for products url?
Post by: GJC Web Design on October 27, 2015, 10:15:06 AM
You missed nothing afaiks..  should work  (.htaccess enabled?  must be as cats work)

hidden or visible menu to VM frontpage.. ? e.g. Shop

some sort of caching?
Title: Re: How to activate SEO for products url?
Post by: nino59 on October 27, 2015, 12:50:49 PM
I don't know. I clean and purge cache of Joomla and browser. I don't understand.
Title: Re: How to activate SEO for products url?
Post by: jjk on October 27, 2015, 19:44:21 PM
If 'index.php?' shows up in the url, usually mod_rewrite has not been enabled in Joomla. See here:
https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs (https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs)
Title: Re: How to activate SEO for products url?
Post by: nino59 on October 28, 2015, 07:20:10 AM
Thanks for your help. I check .htaccess and rewrite is on. Anyway, I see some SEF url which confirm that SEF is on.

Now I have big challenge for expert. Look at this screenshot:



On this screenshot, I am in a product details page where url is not SEF as I explained and this is my issue. But if you look at the link of previous product (of same category), the link is SEF.
So obviously, Virtuemart is SEF some urls like categories, cart, and previous products links but not the product detail page.

Anyone has any idea of this issue?
Title: Re: How to activate SEO for products url?
Post by: jjk on October 28, 2015, 16:26:13 PM
Difficult to say without a link to your site. However, in your screenshot the previous product link 'Bouliac 33750' doesn't match the product link. If 'Bouliac 33750' actually is a product, the 'previous product' link should show .../bouliac-33750-detail as the last part of the url.
Title: Re: How to activate SEO for products url?
Post by: nino59 on October 30, 2015, 08:40:08 AM
I understand your confusion about this "previous product". It is because it use the Product Alias as url, not the product name.
In this case, product "'Bouliac 33750" has alias "recherger-votre-compte-2".

The url of my websote is : http://goo.gl/CbWPzU  where you can see the issue.

Thanks again for trying to help.
Title: Re: How to activate SEO for products url?
Post by: chinoponpeto on October 30, 2015, 14:19:52 PM
i have the same problem. it happen after migration (Joomla 2.5 to 3.0 , VM 2.5 to 3.0).
product detail page is not SEF , but category page is SEF. please see my screenshot for details.

(http://myponpe.com/images/sef/cate-sef1-r1.png)


(http://myponpe.com/images/sef/cat-product-url1r1.png)


(http://myponpe.com/images/sef/product-detail-no-sefr1.png)