News:

Support the VirtueMart project and become a member

Main Menu

How to activate SEO for products url?

Started by nino59, October 27, 2015, 08:24:01 AM

Previous topic - Next topic

nino59

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?

GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

nino59

I don't know. I clean and purge cache of Joomla and browser. I don't understand.

jjk

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
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

nino59

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?

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

nino59

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.

chinoponpeto

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.