Short URL or Long URL for SEO

I am implementing cs-cart for a website. Which one is better for SEO, if possible, with a reason or link. The site sells CD stamp books, etc.

www.domain.com/book/Java.html (or) www.domain.com/book/programming/Java.html 

or

 www.domain.com/Java.html 

Some say short URLs are good. But isn’t it good to indicate in which category it is located. Thanks

+4
source share
3 answers

You can go both using the canonical URL . For example, in the <head> both /Java.html and / book / Java.html:

 <link rel="canonical" href="/book/programming/Java.html" /> 

With this, Googlebot (and Yahoo / MS) will see the current page as a duplicate of the canonical link and ignore it, without the usual flaws that come with a trick.

Long URLs are good for being descriptive, understandable, and searchable, while short URLs are good for people who can send to friends and any social network in jour - maybe you want both.

Maintaining different URLs and covers will add some work to the server. If this is too much effort, I would go with a long form for users and search. "java.html" might just be a random coffee page, it needs context.

+7
source

What if it fits into two categories? This will be the case when I say that it is better to go with a short URL, because you do not want to duplicate content.

+1
source

Try to get the correct size for the site content. For example, the word β€œbook” is redundant at the bookstore URL.

+1
source

Source: https://habr.com/ru/post/1302069/


All Articles