Passer la navigation

[Closed] URL structure

This support ticket is created Il y a 4 years, 3 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Nigel Il y a 4 years, 3 months.

Auteur
Publications
#2280255
url-lenght-seo-ranking-neillplatel.jpg

Tell us what you are trying to do?
We are trying to change the URL structure to our old situation, which was with a Job board WP extension. In that extension we had the possibility to make the URL's short / 1 path depth such as lien caché . With Toolset and our subcategory structure this seems to be impossible and the URL is a kind of sub category lien caché such as lien caché .

With our previous URL structure we had better SEO ranking results. I found lien caché from the blog lien caché which substantiate this.

How can I fix this?

Is there any documentation that you are following?
Can't find documentation about URL structure.

Is there a similar example that we can see?
Not that I am aware of.

What is the link to your site?
lien caché

#2280485

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

WordPress relies on structures such as site.com/%3Cmain-category%3E/%3Csub-category%3E/ to know how to interpret what is being queried with a given URL.

With a URL such as site.com/something how would it know whether something was the slug of a page or post, or the archive of a custom post type whose slug is something, or the archive for a taxonomy whose slug is something, or—in your case—the term archive for a term whose slug is something, belonging to which taxonomy?

To avoid ambiguity, WordPress relies on particular URL structures.

You don't have to abide by those structures, but that does require you to write custom rewrite rules to instruct WordPress how it should interpret certain URL patterns. It's not a simple topic, and you may need the help of a WordPress developer.

If you want to investigate yourself, this is the main reference https://developer.wordpress.org/apis/handbook/rewrite/.

There are quite a few guides describing what's involved, such as lien caché, but if you search you'll find many more.

You can enter simple rewrite rules in the settings for the taxonomy (as well as custom post types), but for what you need you will need to write custom rewrite rules in PHP, or check for plugins that may allow you to set them up via the admin pages.

The topic ‘[Closed] URL structure’ is closed to new replies.