Those of us who are involved in SEO have a lot of factors in mind that affect the positioning of a website and, as in my case, I take it for granted that we know them. A few days ago I was talking to a friend who wants to start an internet business and I realized that I take for granted things that not everyone has to know, as is the main subject of this article, the friendly urls.

I decided to explain this in a post because, when I told him that we had to optimize the urls to achieve optimal positioning of the page, he did not understand very well why we must do this until I explained it to him.

The optimization of the urls making the url go from being an illegible spawn of numbers, letters and symbols to a friendly url for both the user and the search engine bots is a fundamental aspect if we want to rank in Google and be found.

What is a friendly url?

urls amigables

As you know, a url is a unique locator of any resource that exists on the Internet or, for friends, the address of a page. An example of a url could be my own domain: https://ramongarciaseo.com. If we add a slash and continue with the route we could reach a final url as it could be https://ramongarciaseo.com/en/seo-glossary/.

Why do I explain this? Well, because I consider it important before talking about what a friendly url is.

Now, let’s get to the quiz of the question. What is a friendly url? It is an url made up of characters that form words and indicate what the page is about. No symbols like ?= that indicate that it is a parameterized url, for example. It must be a perfectly legible url both for the user and for the spiders that crawl our site to index it in the search engines.

What should a friendly url look like?

hacer urls amigables

Knowing already what a friendly url is, let’s see how we create the perfect friendly url. When building a url thinking as a good SEO we must take into account the following:

  • It should not exceed 115 characters
  • The target keyword must be included as soon as possible
  • Let’s optimize resources, not repeat words
  • We should not nest urls (very common in ecommerce)

With this we can already get an idea of how our perfect friendly url should be. But I’m going to go further. I do not like too long urls, so I optimize resources with a rule: to have the perfect friendly url it must have between 3 and 5 words. Why? Well, because that way I can make sure that my urls comply with the rules I have set above.

También puedes leer:  Chrome extensions that every SEO should have

So, if I have created a post about the benefits of aloe vera on sensitive and delicate skin, my url will be “mydomain.com/the-benefits-of-aloe-vera-skin-sensitive-and-delicate/, my url will be “mydomain.com/benefits-of-aloe-vera-skin-sensitive/” or directly “mydomain.com/benefits-of-aloe-vera/”.

Friendly Urls in ecommerce

urls en ecommerce

What about ecommerce? Well, this is a peculiar case. Despite the belief of some customers I’ve met that for the user to know where he is you have to add toooo all the path in the url with all the levels and sub-levels of categories, coming to say that this is a friendly url (how awful, please! What are the bread crumbs for?), the urls must follow the same rule I mentioned before.

Therefore, if we have an ecommerce of clothes and we are within the category “men’s t-shirts” which is within the category “t-shirts”, our url must not be “mydomain.com/shirts/men’s t-shirts/”. As you can see, besides not complying with one of the basic points I mentioned before, that of resource optimization, since we repeat the word camiestas twice within the url, we are unnecessarily lengthening the url.

Therefore, it should be the url “mydomain.com/man-t-shirts/”, as if we were in a product we would find “mydomain.com/my-product/”.

Optimize urls and make them friendly in CMS

optimizar urls en cms

I’m sure the vast majority of you use WordPress or PrestaShop for your projects. So let’s take a closer look at how to make WordPress and PrestaShop friendly urls for your website. Let’s do it!

Optimize friendly urls in WordPress

To make WordPress friendly urls and optimize our site the first thing we must do is go to Settings>Permanent Links. Here we can see how WordPress builds our urls.

It could be that we find the field “Simple” activated by default that, as you can see, generates a url with parameter, as I told you at the beginning.

What interests us is to go directly to the field “Name of the entry” and mark it where we automatically generate the url of the title of the page, category or post.

Well, we will optimize the url of an entry. To do this, we go to the post that we want to optimize the url and click on “Edit” in the line of the “Permanent Link”.

When modifying the url, if the site is indexable, we must make a redirection 301 to avoid unnecessary 404.

url amigables en wordpress

Optimize friendly urls in PrestaShop

In PrestaShop we found a small (big) inconvenience that personally bothers me a lot, the ids of the pages at the beginning of the slug. What genius of the PrestaShop team programming came up with the idea of including this in the urls without being able to modify it? It’s something that I’ll never understand and I’ll hate for life to be a disciple of Satan himself.

También puedes leer:  Chrome extensions that every SEO should have

Sorry for the bile vomit, it’s something that makes me very angry every day. Well, fortunately this is something we solved by buying a module that eliminates this monstrosity in our url.

Not counting with this detail, I’m going to talk about how to optimize the urls and make them friendly in PrestaShop 1.7. If you want me to extend the post explaining it for PrestaShop 1.6 or another version leave it in a comment and I’ll add it.

To do this, go to Settings>Shop Settings>Traffic & SEO. Here we go to the bottom of the page scrolling and activate the friendly URL check and hit Save.

To get the perfect friendly url we need to scroll down to where it says “Link format”. Here we see how the urls of our online store are built. To optimize them and leave only the final path of the url, we remove everything that precedes. For example, in “Products route”, we load “{category}/” and our url will appear correctly.

“But Ramon, here is also the {id} field, if you delete it as we have done with {category} it will also disappear”. Ay, amigo, try it and see how it doesn’t. Hence my personal frustration with PrestaShop and my bile vomit at the beginning. In order to kill that freak, we need a module to remove it.

Now that we’ve managed to activate the friendly urls and optimize the url nesting, let’s optimize the url of a category! To do this, go to Catalog>Categories and enter the category you want to leave perfect to position.

Once inside the category we scroll until we find the field “Friendly URL”, where we can follow our rule of 3-5 words. It doesn’t matter if the category is only “t-shirts”, we leave it as a t-shirt and it’s there. This is how I explain it for too long urls and try to shorten them.

I want to remind you that, as with WordPress or any CMS we use, if our site is already being indexed, we must do a 301 redirect when modifying our url if we don’t want a nice 404 to be painted.

Conclusion

An optimized url is a fundamental factor in positioning in Google. Making our url a friendly url will help us, and a lot, to rank in Google by optimizing resources by adding the target keywords and making it understandable for Google.

And you, do you make your urls friendly? How do you do it? Tell me in the comments.

[Total: 0   Average: 0/5]

Pin It on Pinterest

Share This