VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Pcwolf on July 28, 2013, 19:15:34 PM

Title: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 28, 2013, 19:15:34 PM
Hello,

In every search module that i download they show this: ...nl/component/virtuemart/search?virtuemart_category_id=0&limitstart=0&option=com_virtuemart&view=category&keyword=
Yes, sef is enable, .htaccess etc... In my products, categories they works perfect without the componement/virt..... so its only: ....nl/category/categories/product
But in search they are showing this  ???

Anyone can help my ?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 28, 2013, 20:25:25 PM
Do you use standard VM search module (latest version)?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 28, 2013, 21:01:47 PM
Yes,  2.0.22a
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 28, 2013, 22:36:01 PM
Did you check your issue on standard Joomla template (beez5)?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 28, 2013, 22:56:40 PM
Yes i tried it. Reinstall vm etc..
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 10:07:08 AM
Could you share a screen shot of your ugly non-sef link? Where do you found it?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 11:51:43 AM
(http://i43.tinypic.com/lleer.png)

When i want to search in virtuemart products, there a found this.
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 12:08:52 PM
Could you clarify where is the problem on your screen shot?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 12:29:36 PM
The url ?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 12:36:02 PM
Ah, this url in the browser address bar is normal. Why do you have problem with it?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 12:38:31 PM
Because they show this: nl/component/virtuemart/search?virtuemart_category_id=0&limitstart=0&option=com_virtuemart&view=category&keyword=  :o

in other vm sites they aren't and its not a browser problem.
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 12:55:46 PM
Sorry I didn't pay my attention to this non-sef url in such unimportant place.

Maybe on some my websites it was sef, on others - not.

What is the difference?

I doubt that such url there could be disturbing neither for shop customer, nor for search engines.
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 13:00:43 PM
But i already enabled sef on my joomla ?

Do i need to install some seo plugins ?

Also, How i can delete the compo... url ?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 13:40:43 PM
With SH404SEF i removed the componement/virtuemart... but now, how i can remove this: ..nl/search?keyword=&limitstart=0&option=com_virtuemart&view=category
and how i can change the title, in SH404SEF in change the page title but nothing changed.

The title is: Virtuemart Category View  ???
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 14:43:22 PM
We can't provide support here for 3rd party seo extensions for VM.

Also there is no need to use any of them.

And you already able to remove "component/virtuemart" part from visible to search engines links without help of sh404sef
http://forum.virtuemart.net/index.php?topic=116282.msg391928#msg391928

Better don't use sh404sef on the web site with Virtuemart.
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 15:06:00 PM
I removed SE404SEF. indeed it does not work.

When i tried to enable the se404sef, url optimalisation then it will removed. But after the results, click on a product then it shows directly site.com/product and not site.com/category/categories/product and thats bad.

I removed the com_virtuemart on the url and now my url are this: component/virtuemart/zoeken?keyword=&limitstart=0&view=category  :D
That's great but it shows component/virtuemart again.

I removed one line on:
modules\mod_virtuemart_search\tmpl\default.php

<input type="hidden" name="option" value="com_virtuemart" />

But it's weird, If i click on my menu item and if i search there a product then the component/virtuemart/ url will removed and its this like this: .../nl/gsm-en-smartphone/zoeken/smartphones?keyword=&limitstart=0&view=category  ;D

So, when you search on the homepage then you will see the comp... url and if you search on a category page then it doesn't

I have see you topic page, i have the same and still not removed.
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 15:36:07 PM
I need to create a menu item for that ?
But i can't see the vm search item.
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 16:36:01 PM
Quote from: Pcwolf on July 29, 2013, 15:06:00 PM
I removed SE404SEF. indeed it does not work.
What doesn't work?

I can't say that non-sef search result url is a hazardous bug.
Quote from: Pcwolf on July 29, 2013, 15:06:00 PM
When i tried to enable the se404sef, url optimalisation then it will removed. But after the results, click on a product then it shows directly site.com/product and not site.com/category/categories/product and thats bad.

I removed the com_virtuemart on the url and now my url are this: component/virtuemart/zoeken?keyword=&limitstart=0&view=category  :D
That's great but it shows component/virtuemart again.

I removed one line on:
modules\mod_virtuemart_search\tmpl\default.php

<input type="hidden" name="option" value="com_virtuemart" />

But it's weird, If i click on my menu item and if i search there a product then the component/virtuemart/ url will removed and its this like this: .../nl/gsm-en-smartphone/zoeken/smartphones?keyword=&limitstart=0&view=category  ;D
Can't help much with configuring sh404sef.

I don't recommend you to broke php logic of VM search module.

Quote from: Pcwolf on July 29, 2013, 15:06:00 PM
So, when you search on the homepage then you will see the comp... url and if you search on a category page then it doesn't
Thank you for the pointing this!

Maybe it's necessary to create menu item for VM frontpage, and not only for VM categories?
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Pcwolf on July 29, 2013, 16:49:50 PM
In SE404SEF when i use url optimalisation then when you search a product it shows directly the product and no /categegories/category/product.

Your idea to use front layout has worked!  :D :D

Now they are: nl/search/zoeken?keyword=&x=0&y=0&limitstart=0&view=category

Thank you  ;)
Title: Re: Search results shows component/virtuemart.... url ?
Post by: Maxim Pishnyak on July 29, 2013, 17:25:29 PM
Thanx for sharing your experience!

By the way it's probably not necessary to have displayed menu item for VM Frontpage.