Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-06-08 11:30:05

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

[SOLVED] category url-path customization

I’ve got to list my articles in a same page by category, but I’ve realized above in the address-bar, there is something I don’t like:

http://www.mysite.net/categor%c3%ada/category-name/ ….is that something from the parent category (whose name is different)?

Can I customize that ‘categor%c3%ada’ in the middle, in order to get something more readable, something like ‘category’?

Last edited by Bongo-man (2014-06-08 11:41:50)

Offline

#2 2014-06-08 14:13:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,171
Website GitHub Mastodon Twitter

Re: [SOLVED] category url-path customization

Can we have a link?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2014-06-08 14:29:58

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: [SOLVED] category url-path customization

And you have to explain us how the example URL is formed (two category levels), http://www.mysite.net/categor%c3%ada/category-name/. %C3%ada stands for ía in percent encoding for URIs.

Last edited by GugUser (2014-06-08 14:34:31)

Offline

#4 2014-06-08 15:37:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,171
Website GitHub Mastodon Twitter

Re: [SOLVED] category url-path customization

GugUser wrote #281291:

And you have to explain us how the example URL is formed (two category levels), http://www.mysite.net/categor%c3%ada/category-name/. %C3%ada stands for ía in percent encoding for URIs.

I see… I’m wondering if an htaccess rule would help. Something like

RedirectMatch 301 ^/categor%c3%ada/?(.+)?$ http://www.yoursite.com/categoria/$1

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2014-06-08 15:37:42

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: [SOLVED] category url-path customization

The link is wwwxxxagrolxxxinkxxxerxxx.net (remove the Xes) :)

So in the URL my site is that above, + /categor%c3%ada/Empresa-y-trabajo/

Please don’t join them all in your answer, I don’t want to leave track of my web site issues available to everyone.

The same strange URL generates for every category, I switch to, in the menu on the right in the home page.

Thanks.

Last edited by Bongo-man (2014-06-08 15:47:09)

Offline

#6 2014-06-08 15:43:43

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: [SOLVED] category url-path customization

To colak:
If I knew why the CMS generate ‘categor%c3%ada’ I suppose I could fix it, instead of redirecting.

Offline

#7 2014-06-08 15:53:24

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,171
Website GitHub Mastodon Twitter

Re: [SOLVED] category url-path customization

I guess it has to do with localisation. accents are not supported by all browsers but their percentage equivalents are. I would definitely go the htaccess way rather than hacking the core files as it would make upgrades easier.

>Edit. Interestingly enough on ff21.xx the url looks fine reading /categoría/Empresa-y-trabajo/

Last edited by colak (2014-06-08 15:57:01)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2014-06-08 16:13:07

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: [SOLVED] category url-path customization

So I realize that firefox supports it without problems, instead of Explorer 11, generating often & increasingly more issues with my websites.

I’ve tried to change the language of my installation to my language (Italian), but it generates a ’404 error’ when I call each category.

So, I suppose the CMS in Spanish generates such errors through my Italian Internet Explorer, not the same brwsing the page through Firefox.

I think it could not be a problem if Google bot is similar to a mozilla-browser, like many of them. Isn’it?

Last edited by Bongo-man (2014-06-08 16:15:37)

Offline

#9 2014-06-08 16:17:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,171
Website GitHub Mastodon Twitter

Re: [SOLVED] category url-path customization

I guess that google chrome is the way google sees things and the url looks fine on chrome 35.0.1916.114


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2014-06-08 16:35:25

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: [SOLVED] category url-path customization

Thank you very much.

Offline

#11 2014-06-08 17:03:53

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: [SOLVED] category url-path customization

How do you make two categories in the URL?

If you know from where comes the category name “categoría”, so you can change it to “categoria”.

But, in general I don’t understand how you “make” your links. Why all your links in the main navigation are http://www.domain.tld/something/index.php?

Offline

#12 2014-06-08 18:23:03

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: [SOLVED] category url-path customization

They aren’t 2: ‘Categorías’ is the label of the categorias.

I’ve this structure of the URL because I preferred it in the settings, that is: /seccion/titulo

In this case, I see, has been displayed /Categoría/titulo-categoria

Last edited by Bongo-man (2014-06-08 18:23:41)

Offline

Board footer

Powered by FluxBB