• Home
  • Get help
  • Ask a question
Last post 10 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67856
All time tickets 10487
All time avg. posts per day 20

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.

#107 – Editing language URL's

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.
Saturday, 18 April 2015 21:48 UTC
gijs007
Hello,

I've just installed this plugin and noticed that my URL's look like:

For English:
http://www.xxxx.net/English/game-servers.html
I'd like to get rid of the /English/ part which shows up for some url's

For Dutch:
http://www.xxxx.net/nl/Nederlands/game-servers.html
I'd like this to be http://www.xxxx.net/nl/game-servers.html

For French: (similar to Dutch)
http://www.xxxx.net/fr/French/bienvenue-a-elite-game-servers-net.html
I'd like this to be http://www.xxxx.net/fr/bienvenue-a-elite-game-servers-net.html

I hope to hear from you soon :)
Monday, 20 April 2015 09:28 UTC
wb_weeblr
Hi

Those are not the languages. Those are the categories where you content is located. Contrary to Joomla, sh404SEF uses only a piece of content title and categories to build URLs (not menu items).
You can decide here: https://weeblr.com/images/screenshots/ccKrdDr7YxXzkbxcwOau6LxbUuxTXd.png which categories are used (or not) to define your URLs.

As a general consideration, and expect if your site has only a few pages, for best SEO result, you should store your content in categories that reflects their meaning and the topics they deal with (rather than "English" or "French" which are already in the URL through the short language code en or fr.
Then sh404SEF will show that structure in the URLs, to help search engines understand better your content.

Rgds

Note: as you have a multilingual site, please make sure to update to the next release of sh404SEF, that will be released today. It has a couple more workarounds for Joomla 3.4.1 multilingual quirks.

 
Monday, 20 April 2015 13:27 UTC
gijs007
Wouldn't this disable the categories in all my url's?
I'd like to only disable the English, French and Dutch category in the url's. But still show all other category's

I currently have categories for each language because this was the suggested setup for Joomla multilingual website and because it makes the admin interface a little more structured.
Monday, 20 April 2015 17:26 UTC
wb_weeblr
Hi

Indeed, that's a global setting, at least global to Joomla content.

The problem is not having content in per language categories, per se. They absolutely must be in per language category, or you will definitely run into issues with some content not showing when you expect.
The problem is more in how you call them. For instance, this looks like general categories, so maybe you can have
/welcome/elite-game-servers.html
/nl/wilkomen/elite-game-servers.html
/fr/bienvenue/elite-game-servers.html

That's just an example of URLs that carries meaning in their structure. The last one is strictly equivalent to http://www.xxxx.net/fr/bienvenue-a-elite-game-servers-net.html, but shorter, more structured and easier to understand and classify for a search engine.
Not saying you should have 50 categories per language, but it's usually possible, and always better for SEO, to classify your content in a way that categories convey meaning, even for general categories.

Rgds
 
Monday, 20 April 2015 17:45 UTC
gijs007
That really sucks, with mijosef I was able to exclude certain category's.. but apparently I can't with sh404.

I really need this functionality, since I can't put all my article's in the uncategorised category (some have the same name, for example game servers is called the same in Dutch and English)

So like I said:

http://www.xxxx.net/English/game-servers.html
I'd like to get rid of the /English/ part which shows up for some url's, e.g. make these pages "main/uncategorised"

For Dutch:
http://www.xxxx.net/nl/Nederlands/game-servers.html
I'd like this to be http://www.xxxx.net/nl/game-servers.html

For French: (similar to Dutch)
http://www.xxxx.net/fr/French/bienvenue-a-elite-game-servers-net.html
I'd like this to be http://www.xxxx.net/fr/bienvenue-a-elite-game-servers-net.html

Since there is no need to specify the language in both a category and by the language manager..
Monday, 20 April 2015 19:34 UTC
wb_weeblr
I really need this functionality, since I can't put all my article's in the uncategorised category
Who said anything like that?

I just said the opposite, I said to put those items in a meaningful, per language category.

Since there is no need to specify the language in both a category and by the language manager..
Correct, I just said the opposite of that.

Please compare:
/fr/bienvenue/elite-game-servers.html
to
/fr/bienvenue-a-elite-game-servers-net.html

That's just an example.

I'm sorry that you don't find the equivalent of Mijosef settings, what you're mentioning is nice feature for advanced users, and it sure will be in sh404SEF one day, but not in the immediate future.

Rgds
 
Monday, 20 April 2015 19:48 UTC
gijs007
I suppose I could set the URL's manually, to the ones I want. Correct?

Perhaps it's possible to remove the category's I mentioned such as /english/ from the url's trough a MySQL query?
Tuesday, 21 April 2015 11:24 UTC
wb_weeblr
Hi

Yes, you can always modify any URL through the URL manager. Going at database level is just a maintenance nightmare for you and your customers in the future.
If possible, you'd be better off doing it through the user interface. These changes would be marked as custom, and so wouldn't be wiped out any more in case of purging URLs, so your changes would be safe in the future.
Does that make sense?

Rgds
 
Monday, 27 April 2015 18:40 UTC
gijs007
I've used the following query:
UPDATE k01cv_sh404sef_urls SET oldurl = REPLACE(oldurl, 'English/', '');

replaced english/ with french and nederlands to fix the other url's :)
Monday, 27 April 2015 19:33 UTC
wb_weeblr
OK. Just never purge your URLs through sh404SEF URL manager or you'll loose those changes.

If you happen to run those queries again, just also set the "dateadd" column with the current date, so that those URLS are recognized as custom and not deleted by a purge.

Rgds
 
Monday, 27 April 2015 20:33 UTC
gijs007
Is there a way to set the dateadd column for all my URL's, so that I then can remove it from the URL's that I don't want to have a sticky URL?
Tuesday, 28 April 2015 08:14 UTC
wb_weeblr
Not sure I understand that. You mean through the UI? if so, no. Custom are meant to be manually customized, so you delete them one by one, or by multiple selects in the URL manager.

Directly in the DB of course, it's only a matter of running the query.

Rgds
 
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.