• Home
  • Get help
  • Ask a question
Last post 8 hours 54 min ago
Posts last week 89
Average response time last week 30 min
All time posts 67735
All time tickets 10467
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#5693 – sh404SEF conflict with Joomla search

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 26 March 2019 01:29 UTC
lmika001
Dear,

When I enable my sh404SEF, my front end webpage "search" function will not work, you type in any word and search it, the website will jump to homepage, but, if I disable sh404SEF, it works again.

Also, If I enable s404SEF, my url change from https://www.xxxx.com/products/alloy-steel-bar/cold-heading-steel-bar/ch1t to https://www.xxxx.com/cold-heading-steel-bar/ch1t

The 2nd and 3rd layer URL disappear, how could I make it appear as before?

Many thanks

Leo 
Tuesday, 26 March 2019 08:24 UTC
wb_weeblr
Hi

1 - Search: this is not Joomla search. sh404SEF is fully compatible with all Joomla standard features. This search box is coming from your template and is not the standard Joomla search which will always work. The fact it works when you disabled sh404SEF does not mean the problem actually comes from sh404SEF.

I cannot comment any more without actually seeing what's happening, that is with sh404SEF enabled.

2 -
Also, If I enable s404SEF, my url change from https://www.xxxx.com/products/alloy-steel-bar/cold-heading-steel-bar/ch1t to https://www.xxxx.com/cold-heading-steel-bar/ch1t

The 2nd and 3rd layer URL disappear, how could I make it appear as before?
That's expected and one of the reasons one normally uses sh404SEF, to get better URLs and avoiding duplicate content issues.

sh404SEF can be configured to mimic your old, Joomla-SEF URLs though. What kind of URLs are those? for which type of content exactly? Joomla articles?

Best regards
 
Tuesday, 26 March 2019 08:46 UTC
lmika001
1. Now I enable sh404SEF, you can visit my website https://www.xxxx.com/ , search anything, all search result jump to home page, note: when I use old version sh404SEF, search function work well.

2. please check the URL below:

https://www.xxxx.com/products/alloy-steel-bar/cold-heading-steel-bar/ch1t This is the old URL when I disable sh404SEF

https://www.xxxx.com/cold-heading-steel-bar/ch1t This is the new URL when I enable sh404SEF

I know that sh404SEF try to make URL short to become friendly to SEO, but, the new url is too short, my customer on the web maybe want to see the whole structural of the problem belows, full URL is very helpful for them, not the sh404SEF short URL.

So, just please tell me, when I enable sh404SEF, how could I make URL change back to old, long, URL.

Thanks.

Leo
Tuesday, 26 March 2019 10:20 UTC
wb_weeblr
Hi

1 - So I did a search and actually the search does not jump to the home page. As you can see in the address bar, the URL is good and there's no functional issue: the search works fine. The URL you get to is:

https://www.xxxx.com/search?searchphrase=all&searchword=industry

What's happening here is simply that the display is based on joomla home page menu item and because your template has a special display for the home page, the search results are not shown.

This is typically caused by Joomla creating multiple URLs for the same page and can easily be fixed:

- go to SEF URL manager
- search for search - which is the URL used by the search function
- in the duplicates column you must have a counter showing how many duplicates Joomla created, similar to:



- click on that counter, you'll get a list of duplicate non-sef URLs that sh404SEF grouped under the same SEF, search:



You'll see all the duplicates, usually varying by the Itemid value which is the menu item id in Joomla. Currently, the non-sef URL with the Home page menu item id must be selected. Choose another URL with an appropriate menu Item id, select it and click the "Make main" button.

That should be it.

2 -
I know that sh404SEF try to make URL short to become friendly to SEO,
That's not at all what sh404SEF is trying to do. What we're trying to do is avoid the duplicate content issues that appears with Joomla SEF system because it is based on menu items. In other words, there can be multiple links to the same page depending on which navigation/menu you used to arrive to it.
That's why URLs in sh404SEF do not rely on menu items. The length has nothing to do with it and many times the sh404SEF URLs will be longer.
URLs in sh404SEF are built based on items categories and titles: something that won't change based on navigation and so the same page will always have the same URL.

, my customer on the web maybe want to see the whole structural of the problem belows, full URL is very helpful for them, not the sh404SEF short URL.
You can usually configure the URL structure in sh404SEF but I would need you to reply to my question before we can go any further on that:

What kind of URLs are those? for which type of content exactly? Joomla articles?


Best regards
 
Tuesday, 26 March 2019 10:34 UTC
lmika001
Dear,

1. Thanks so much, follow your advice, the first problem solved, search function work well now.

2. These URL is for my products, steel grade and which kind of alloy it belows to, such as 25CrMo4 steel, it is steel bar, normally use for metal gear, so customer find it follow: products->alloy steel bar->gear steel bar->25CrMo4

so the URL should looks like https://www.xxxx.com/products/alloy-steel-bar/gear-steel-bar/25CrMo4

But sh404SEF make the URL becomes https://www.xxxx.com/gear-steel-bar/25CrMo4

That is really friendly for SEO, but customer will a little confused which type of this products blows to, so I prefer use the old, longer URL.

All my article is joomla own article content (not k2),

thanks
Tuesday, 26 March 2019 10:39 UTC
wb_weeblr
Hi

Yes, but you still have not replied to the question:
for which type of content exactly? Joomla articles?
Articles? Virtuemart? Hikashop? something else?

Best regards
 
Tuesday, 26 March 2019 12:39 UTC
lmika001
Dear,

Yes, it is Articles, Joomla Article.

Leo
Tuesday, 26 March 2019 12:46 UTC
wb_weeblr
Hi

OK, so the URL configuration for Joomla article is located under "Extensions" => "Joomla". There you'll see dropdown selects to decide which article categories to include in the URLs. Like I said before, with sh404SEF all links are based on the natural structure of the content, given by categories and links.



If you make any change there, don't forget to go to the SEF URL manager afterwards and Purge all URLs with the Purge button. This will delete the current URLs and new ones will be created again as you navigate your site. Go first to the home page and just navigate to your products. Be sure also to clear your Joomla cache if you use that.

Best regards
 
Tuesday, 26 March 2019 14:17 UTC
lmika001
HI,

In extension->Joomla I sent as you told me

You can see my screenshots

The problem still exist, URL still be long, did I set wrong ?

Leo
Tuesday, 26 March 2019 15:52 UTC
wb_weeblr
Hi

The problem still exist, URL still be long, did I set wrong ?
URL are long or short?

Please use real examples.

To be clear: when you select "All nested categories" then all the categories an article belongs to are going to be used to build its URL.

As an exemple: products/alloy-steel-bar/cold-heading-steel-bar/ch1t

Does this article "ch1t" is in categories: products --> alloy steal bar --> cold heading steal bar?

If yes, the URL will be: /products/alloy-steel-bar/cold-heading-steel-bar/ch1t
If not, then the actual categories will be used: /categories-1/categories-2/ch1t

Best regards
 
Wednesday, 27 March 2019 01:52 UTC
lmika001
Dear,

Sorry for bother you again.

I set sh404SEF exact as you told me, but URL is till become shorter, I want it as long as before, as when I disable sh404SEF.

Yes, ch1t article is in categories: products>alloy steel bar>cold heading steel bar

Now I disable the sh404SEF, the URL change back to:

https://www.xxxx.com/products/alloy-steel-bar/cold-heading-steel-bar/ch1t

This is what I want.

I already set "all nested categories", but when I enable sh404SEF, it still become into

https://www.xxxx.com/cold-heading-steel-bar/ch1t

I do not want this, did I explain clearly now?

Leo


Wednesday, 27 March 2019 07:44 UTC
wb_weeblr
Hi

This
Yes, ch1t article is in categories: products>alloy steel bar>cold heading steel bar

and this
I already set "all nested categories", but when I enable sh404SEF, it still become into

https://www.xxxx.com/cold-heading-steel-bar/ch1t


are not compatible. Are you sure you have purged URLs after changing the settings?

Best regards

 
Wednesday, 27 March 2019 11:13 UTC
lmika001
Dear,

After purge, the URL update to full length, but it cause another problem, please help me solve,

https://www.xxxx.com/sample-data-articles/products/alloy-steel-bar/cold-heading-steel-bar/ch1t

It becomes above looks like, could I delete sample-data-articles from the URL ?

Many thanks, this is the last question.

Leo
Wednesday, 27 March 2019 11:18 UTC
wb_weeblr
Hi,

The answer is exactly the same: sh404SEF uses ALL nested categories. If you put your content in the /sample-data-articles, then it will have that category in the URL as well.

You should probably move your content and make the "product" category be a top-level category. Once you've done that, remember to Purge URLs so that new URLs are created.

Best regards
 
Wednesday, 27 March 2019 11:21 UTC
lmika001
Many thanks
Wednesday, 27 March 2019 11:44 UTC
wb_weeblr
Hi

Glad it's sorted out now. Closing this ticket now, feel free to open a new one as needed. If you do so, please mention this ticket number in the new one.

If you created any superadmin account for us, be sure to delete or block it now to avoid unnecessary risk in the future.

Be sure to also check out wbAMP, our new Accelerated Mobiles pages plugin for Joomla - the next big thing is SEO, direct from Google themselves!



Best regards

 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.