• Home
  • Get help
  • Ask a question
Last post 3 min ago
Posts last week 215
Average response time last week 34 min
All time posts 66904
All time tickets 10344
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.

#2846 – Categories and Subcategories in URL

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.
Friday, 14 October 2016 15:15 UTC
ghribi
 Hello,

I've just launched my new website, but I have discovered strange urls.
My site: https://www.xxxx.cab/

Example of Urls: indexed by google

/anglais/ (anglais is a category) : this Url displays a list subcategories
/airport-transfers/ (airport-transfers is a subcategory) :this Url displays a list of articles

How to do to to not generate these Urls ?

Regards
Friday, 14 October 2016 15:23 UTC
wb_weeblr
Hi

sh404SEF does not generate URLs. It only turns them from non-sef to SEF, and record them in the database.

Those URLs are created by Joomla and/or your extensions, and would be on your site, whether you have sh404SEF or not.

Usual suspect when creating such URLs are the breadcrumb module, and other modules in general. You could use a site crawler to find the pages those URLs are displayed on maybe?

Another thing you can do is redirect those URLs to aonther one, or no-index them. That you can do with sh404SEF, by clicking on each URL in the URL manager, and entering noindex,follow as the robot tag. Redirecting is done by adding those URLs as aliases to the target URL, as described in the documentation on this page.

Rgds
 
Friday, 14 October 2016 15:41 UTC
ghribi
Hi,

"anglais" and "airport-transfers" are categories.
Can i hide categories and subcategories fromUrl by configuring Sh404?

Regards
Friday, 14 October 2016 15:45 UTC
wb_weeblr
Hi

"anglais" and "airport-transfers" are categories.

Can i hide categories and subcategories fromUrl by configuring Sh404?
This is a totally different question from the first one. Is the first one understood and solved (or on the way to be solved)?

As for selecting how categories are included in URLs (at least for joomla standard content), this is done under the "Extensions -> Joomla" tab of sh404SEF configuration.
After changing settings there, you will need to delete the URLs, or Purge them all, so that new ones are created again.

Rgds
 
Friday, 14 October 2016 16:00 UTC
ghribi
Is the first one understood and solved (or on the way to be solved?)

Yes understood but not convinced and not solved yet.

This is a totally different question from the first one

I believe this is the same problem because the alias "anglais" in www.xxxx/anglais/ is a category.
So if i hide the categories from Urls, i can fix my problem.

Find below my configuration.

Merci pour votre patience :)
Friday, 14 October 2016 17:57 UTC
wb_weeblr
Hi

Yes understood but not convinced
Convinced by what and about what?

I believe this is the same problem because the alias "anglais" in www.xxxx/anglais/ is a category.

So if i hide the categories from Urls, i can fix my problem.
Not at all. These 2 things are 100% UN-related.

/anglais/ is the link to the blog view of the "anglais" category. You cannot change or modify links to categories, that makes no sense: what would be the link to the "anglais" category if we would remove categories from those links? that would leave an empty link, which is not workable (if you remove the category in /anglais/ then this becomes the home page as well. How are we supposed to know what should be displayed when one request the home page? the "anglais" blog view? or whatever is your home page?)

The settings I mentioned above are for selecting categories inclusion in article links. For instance, /anglais/article-number-1, can be changed to just /article-number-1.

That's it and we do no more, and certainly not modify the categories URLs.

So you are back to square one: find where those URLs are produced on your site, and remove them. Or if you can't do that, redirect them or "noindex" them, which are both extremely quick fixes for your problem.

Rgds
 
Saturday, 15 October 2016 08:30 UTC
ghribi
Hi,

Thanks for your help.
I will redirect those URLs to aonther one as explained above.

Regards
Sarah
Saturday, 15 October 2016 10:06 UTC
ghribi
Hello,

I have discovered another problem on my site: I'm not able to let work the 404 error message.

When I load a wrong page: http://www.mysite/ttttt i get an error message :
You are not authorised to view this resource
instead of the Sh404 message .

Sometimes i get another esaage:
Call to a member function def() on null


Can you help me?

Site: xxxx.cab
Login: xxxx
Passw: xxxx

Regards
Monday, 17 October 2016 07:34 UTC
wb_weeblr
Hi

I will look, but please close this ticket and open a new one, this is an entirely different topic. Also note this is not an issue in sh404SEF. I know this for a fact, as we do not use the def() function in the entire sh404SEF code. Therefore this is an other extension breaking our 404 page feature. I can spend a bit of time trying to disable your system plugins one by one to see which one is causing the problem, but not much more. The template is usually a common source of such issues. Temporarily switching to protostar, Joomla default template is a good way to see if the problem goes away.

Rgds
 
Monday, 17 October 2016 18:35 UTC
ghribi
Hi,
Thank you for your help.
I will close this topic and open another one for this problem.

Regards
Sarah
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.