sxg1-b39https://thegray.company/blog/whats-in-an-seo-friendly-url豷ig;sig=*MEQCIGU0vqH+2U2gY67y5So88Y/xDouISZdymRApdsYxLaFwAiBNhtDeG/zUZ16MRDGVP02mfnIjbfYx9qVLwkf2CVjpiw==*;integrity="digest/mi-sha256-03";cert-url="https://thegray.company/cdn-fpw/sxg/cert.pem.msg.5czbjiLz5uA73pOjj1ICxqAwmbWxH73Pp62_NBLIEdA";cert-sha256=*5czbjiLz5uA73pOjj1ICxqAwmbWxH73Pp62/NBLIEdA=*;validity-url="https://thegray.company/cdn-fpw/sxg/valid.msg.validity";date=1718294372;expires=1718899172疌ageF238663DdateXThu, 13 Jun 2024 16:59:31 GMTDvaryX$Accept-Encoding,x-wf-forwarded-protoFcf-rayT8933a1b393ee91b1-SINFdigestX9mi-sha256-03=diOIiqzWCPHHyb9xtK0SbbbvZ+4ewidr8KSRyvO/cyY=FserverJcloudflareG:statusC200Gx-cacheHHIT, HITGx-timerXS1718297972.783655,VS0,VE1Kx-lambda-idX$f6ab7a37-16bf-4c98-9f7b-2ec697869c92Kx-served-byX,cache-iad-kiad7000079-IAD, cache-qpg1242-QPGLcontent-typeItext/htmlLx-cache-hitsE18, 0Ocf-cache-statusGDYNAMICPcontent-encodingLmi-sha256-03@ What's in an SEO-friendly URL? Best Practices for URLs
Blog

What's in an SEO-friendly URL? Best Practices for URLs

Updated on:聽
February 8, 2023
by
Tory Gray
Tory Gray

Let鈥檚 discuss URL best practices: frankly, it鈥檚 one of the elements of SEO that is easiest to get right (and yet, so SO many issues out there.)

SEO-friendly URLs can & should:

  • Describe your content/purpose
  • Help you avoid duplicate content
  • Make your pages easier to share, remember, and type into a browser
  • Help your web visitors navigate your site
  • Increase search engine ranking for sought after keywords- AKA improve SERP visibility
  • Improve聽readability
  • Avoid site speed & security issues

The way that a search engines robot or聽crawler聽reads your URL (or: Uniform Resource Locator) can be different than how a human reads it. While you are structuring your website, (say, defining your Information Architecture,) it is very important to create a URL structure that will please your mechanical visitors as well as your human ones. URLs that are too long, include underscores, capital letters, arbitrary numbers or even just look a 鈥渓ittle weird鈥 can cause problems in a couple of different ways.聽

Bad URLs can:聽

  • Hinder the user experience
  • Create duplicate content
  • Expose file extensions, security vulnerabilities
  • Slow down site speed
  • Reduce SEO effectiveness

Here鈥檚 a guide for insight on what you should look out for when defining your URL structure.

PLEASE聽NOTE that URLs are considered a very minor ranking factor for Google. That said, the advice below isn't just for SEO, it's also for users, usability, clarity, etc. In other words:聽it's still worth your time to do this right, even if it wasn't a ranking factor at all!

But first, let鈥檚 quickly review the parts of a URL:

Diagram of all the parts of a URL
The Parts of a URL

Protocol:

The very first part of the URL - the 鈥渉ttp鈥 part of "http://www.example.com." If the website is using the secure protocol, it鈥檒l be 鈥渉ttps.鈥 S = secure (at least鈥 more secure.)

Subdomain:

If there are multiple periods in your domain, you鈥檝e got a subdomain. It's the 鈥渨ww.鈥 part of "www.example.com."

  • Subdomains are not required. For example, this website actually loads without one (https://thegray.company); it鈥檚 included in this image for context.
  • The most popular subdomain is 鈥渨ww.鈥滭/li>
  • There can be multiple subdomains.
  • Classic example: ads.google.com, www.google.com, support.google.com, etc.
  • Subdomains are, technically speaking, entirely different websites. They are related to the core-domain, though, and are usually used to organize different parts of your business and/or different platforms (e.g. blog.yoursite.com - which we do NOT recommend.)
  • Subdomains can be nested. I鈥檓 sure you鈥檝e seen promotional signs with sites like 鈥渨ww.yoursite.wordpress.com鈥?
  • We do not recommend doing this (if only because, well - it鈥檚 unnecessary, it looks weird, and it very likely confuses people.)

Domain/Root Domain:

鈥岦/strong>Your domain name that you (most likely) directly purchased.

Top-level Domain聽(TLD):

.com, co.uk, .org, .gov are all extremely popular ones, but there are 1000s available to choose from. If and when a TLD is country-specific (say, .de for Germany, and .co.uk for the United Kingdom), it's called a ccTLD, or country-code top-level domain.

Path:

鈥岦/strong>Really, path describes anything after the first slash after the domain name (including folders.) This is sometimes also called a 鈥渞elative URL.鈥滭/p>

Folder/Sub-folder:

URLs often have a nesting organizational structure. In the example image above, /blog/ is a folder. If we organized blog content by the year it was posted (e.g. /blog/2020/whats-in-an-seo-friendly-url), the /2020/ part would be a sub-folder. It鈥檚 basically just the nested part of this parent/child URL structure often used for category and subcategory structuring (picture breadcrumb nesting.)

Slug:

The same thing as the path, but it specifically refers to the name of the URL after the final slash - or the specific page you are viewing. In the case of assets (images, JS, CSS, etc.) the URL slug is the actual filename of that asset.

Parameters/Query Parameters:

The question mark in a URL, and anything after it (hashes being an exception to this rule.) URL聽Parameters are聽dynamic URLs聽that聽can聽change聽page content, but don't always.

  • Parameters can nest, and when they do so, you鈥檒l see ampersands in the URL.
  • Example: ?utm_source=google&utm_medium=organic&s=search-query
  • All additional parameters are added via additional ampersands.

Hash / Anchor:

鈥岦/strong>The pound sign in a URL, and anything after it. 聽Google will not be able to access unique URLs with hashes in them; only the part of the URL without the hash will be considered. Therefore, they specifically recommends against using hashes in URLs.

That said, the use of hashes is perfectly fine in some cases:

  • When the hash is used as an anchor, and you are just organizing content within the page for greater readability.
  • When you are creating content that shouldn鈥檛 be in Google anyway. This is a fun one actually - consider actively using hashes for those elements you don鈥檛 want to be accessible.
no-hashtags

With that in mind - no羓暩嘽騳e杵LH撡呤隩Pw/T 误唚 that we鈥檙e all speaking the same 鈥渓anguage鈥? let鈥檚 get back to important URL considerations:

URL Capitalization聽

Capitalization directly affects the way that search engines index your site. While domains (eg "example.com") are not case sensitive by themselves, URLs are. So when a search engine sees www.yoursite.com/Section-One/ and www.yoursite.com/section-one/ it indexes them as two different web pages.聽

Two different versions of the same page with the same content will be flagged as duplicate content, which can & does create SEO issues.

Pro-Tip: duplicate content is an issue because - once upon a time - spammers would steal content from other sites & put it on their own sites. Google started penalizing sites with the same content on different URLs to stop this bad practice. URL casing issues are really just a by-product of this original fix.

Similarly, if your URL has聽uppercase聽letters, and a user links to a聽lowercase聽letters, it could end up as a 404 error - a rare occurrence, but it does happen.

Quick solve? Enforce casing & redirect from one version to the other. I strongly recommend all lower case, all the time. (Aside - you can ignore casing issues in parameters.)

URL Length (Too Many Nested Folders, Arbitrary Characters, Query Parameters)聽

When optimizing a web page for a certain keyword, you want to make sure that there isn't a lot of necessary 鈥渇iller.鈥 Generally aim for less than or equal to 75 characters (including your domain name) whenever possible.聽Long URLs聽are not (at all) inherently better.

As a human, it might be safe to assume that www.yoursite.com/08/09/2011/url-best-practices/ means that yoursite.com published an article about URL best practices on August the 9th, 2011. Search engines will see this and take into account the numbers as well as the words.

The importance of the words can be diluted by the presence of the numbers - and folders - preceding it. Plus - if date is old - the content could be devalued.聽

General rule of thumb: important pages on your site should have no more than 3 folders. Don鈥檛 include folders when they aren鈥檛 helpful!

Query parameters increase the overall length of the URL and can lead to duplicate content issues. How faceted URLs on e-commerce websites look is a common problem on e-commerce websites when sorting different products and categories.聽

  • Example: /product-category?color=blue&size=medium vs. /product-category?size=medium&color=blue. This is essentially the exact same page with the parameters in the opposite order.
  • Note that proper use of the canonical tag can fix these issues, especially for large & complex sites which may require filtering via parameters.聽

Many people recommend dropping sentence articles or so-called "stop words" (e.g. 鈥渢he鈥? 鈥渁鈥? etc.) from URLs. We don鈥檛 feel strongly about this either way - just keep overall URL length in mind, if and when you do keep them.

More on folder structure, below.

Shorter URLs are also nicer to look at, easier to understand, easier to memorize, read to someone over the phone, type into a mobile device, etc.聽

Hyphens聽(Dashes) vs Underscores聽

The short and sweet difference between these separators:

  • Hyphens are seen as spaces (e.g. 鈥渦rl-best-practices鈥 is 鈥渦rl best practices鈥?
  • Underscores are seen as鈥 underscores. Which are necessary when you are searching for names of things that do actually include underscores.

So the short and sweet recommendation here is: always聽use聽hyphens聽to聽separate words聽in URLs.

Caveat: underscore usage in parameters is fine. Parameters really have their own set of rules that are separate!

File Extensions in URLs聽

Having file extensions, like .html, .php, .asp and so on, at the end of your URLs does not appear to have a direct effect on your web page's search engine ranking.聽That said, there are reasons to remove file extensions from your URLs.

One reason is security. The more information that a malicious user or bot has about how your website is built, the better chance they have of figuring out how to hack it (to be clear, this is not hard to determine anyway, but why make it easier on them?)

Another reason to remove file extensions is the longevity of that URL - with them, every time you change your website鈥檚 platform, or the based language, the URL must inherently change. But if URLs are extensionless, they don鈥檛 inherently have to change when the technology that drives the changes.

File/Path Structure聽

The architecture of your site is very important for many reasons. The way your files are structured makes a difference in how your website is crawled by search engines, as well as 鈥渟urfed鈥 by a user.

utilize-folders-that-make-sense-for-your-site

鈥岦/p>

A good rule of thumb to follow is to try to have your most important content within two or three clicks (and folders, as mentioned above) of the home page. Pages that are placed closer to your home page will gain more SEO equity, and therefore more ability to rank.聽

Proper folder structure should be used, so any pages nested under /products/ should include the folder in their URL, e.g. www.yoursite.com/a-great-product/ should be at www.yoursite.com/products/a-great-product/. This aids usability/user experience in that users always know where they are located on your site.聽

(Proper folder structure is, in essence, a UX聽and SEO-friendly聽URL聽structure.)

Some sites try to get around the 鈥? click/folder鈥 rule by making all URLs top-level (i.e. no use of subfolders, with all URL slugs directly after the top-level domain.)

  • Example: your-site.com/product-name-here, and yoursite.com/blog-name-here
  • We really don鈥檛 recommend this, except on extremely small sites. This solution:
  • Does not scale well
  • Can contribute to site speed issues (the more pages you have)
  • Makes reporting in site performance - especially key pages or page types - unnecessarily complicated

Instead, we recommend organizing folders by the function they serve on your site, e.g.:

  • /blog
  • /products
  • /categories (please do not include category names in product URLs - this is really critical for sites with products that can fit into multiple categories! This creates unnecessary duplicate content.)
  • /services/service-name
  • etc.

Keywords in URLs

It鈥檚 no secret that including your target keyword in your URL can help your page rank for that keyword. With that in mind:

  • Do your research. Know what pages you are attempting to rank for what keywords, and clearly - and concisely - include them in your URL name.
  • Don鈥檛 overdo it. This is really, really easy to do. Especially on large sites with nested folders.

Here鈥檚 how that happens:

  • Let鈥檚 say you sell furniture, so your first folder organizes furniture by a room, /dining-furniture/ for example.
  • Then you want to add a folder for tables: /dining-furniture/tables.
  • Maybe you sell Amish furniture, so suddenly your URLs are /amish-dining-furniture/amish-tables.
  • If you nest product URLs under category names - which some CMS systems force you to do - suddenly your URL is /amish-dining-furniture/amish-tables/the-monica-amish-round-14-seat-with-leaves-table. That鈥檚 way too long! And way too much usage of the keyword 鈥淎mish鈥?
    鈥岦/li>

With that in mind, URL folder paths, in particular, should be kept as simple as possible.

  • Instead, include your key terms in the final slugs (e.g. the product name, and the blog post name.)
  • And still - keep it clear and concise. Also, to state the obvious - direct and accurate!

Keyword stuffing your URLs will not make any modern algorithm happy, and your search engine results will suffer accordingly!

"SEO best practices for URLs" are one of the first things someone will discover when they begin to explore search engine optimization, given that URLs are a ranking factor. It is a very simple idea, but it鈥檚 easy to go down a rabbit hole and create lots of unintended complications for yourself.

The good news is that once your URL issues have been resolved, you can create 301 redirects from the old URL versions to the new ones.聽This ensures that any pages pointing to the old URLs will resolve permanently to the new, optimized versions.聽

And fortunately, today most CMSs (Content Management Systems) are built with simple, automated聽URL structures, so getting URLs "right" can be as simple as聽 including the right keywords in the right places.

Do you need help creating the best URL structure to improve your brand's ranking signals in Google search? 聽 Contact us today!

Work With Us
We鈥檒l help craft, teach, and carry out SEO roadmaps that check all the boxes.
CONNECT聽THE聽DOTS WITH聽US

哆哆女性网给婴儿免费起名大全免费关于健康中国的作文芊芊公主梦破解版宁陵公司人工种桑黄多长时间收获免费智能起名字大全取名网周易宝宝起名福建省建设工程造价信息网站付姓起名字男宝宝自起名打分高分的起名永城张文海seo工程师英文好的seo优化查装修设计的网站起凡名将姓柯的女孩起名大全关于世界未解之谜恐怖诡异故事实惠网站制作心若在梦就在怎么解释物业公司网站建设近期上映的电视剧有哪些上海高级金融学院周易取名下载安装2018狗年起名设计酒店网站摘要冬天作文450字叶罗丽精灵梦破解版下载游戏佛山品牌网站建设淀粉肠小王子日销售额涨超10倍罗斯否认插足凯特王妃婚姻不负春光新的一天从800个哈欠开始有个姐真把千机伞做出来了国产伟哥去年销售近13亿充个话费竟沦为间接洗钱工具重庆警方辟谣“男子杀人焚尸”男子给前妻转账 现任妻子起诉要回春分繁花正当时呼北高速交通事故已致14人死亡杨洋拄拐现身医院月嫂回应掌掴婴儿是在赶虫子男孩疑遭霸凌 家长讨说法被踢出群因自嘲式简历走红的教授更新简介网友建议重庆地铁不准乘客携带菜筐清明节放假3天调休1天郑州一火锅店爆改成麻辣烫店19岁小伙救下5人后溺亡 多方发声两大学生合买彩票中奖一人不认账张家界的山上“长”满了韩国人?单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#青海通报栏杆断裂小学生跌落住进ICU代拍被何赛飞拿着魔杖追着打315晚会后胖东来又人满为患了当地回应沈阳致3死车祸车主疑毒驾武汉大学樱花即将进入盛花期张立群任西安交通大学校长为江西彩礼“减负”的“试婚人”网友洛杉矶偶遇贾玲倪萍分享减重40斤方法男孩8年未见母亲被告知被遗忘小米汽车超级工厂正式揭幕周杰伦一审败诉网易特朗普谈“凯特王妃P图照”考生莫言也上北大硕士复试名单了妈妈回应孩子在校撞护栏坠楼恒大被罚41.75亿到底怎么缴男子持台球杆殴打2名女店员被抓校方回应护栏损坏小学生课间坠楼外国人感慨凌晨的中国很安全火箭最近9战8胜1负王树国3次鞠躬告别西交大师生房客欠租失踪 房东直发愁萧美琴窜访捷克 外交部回应山西省委原副书记商黎光被逮捕阿根廷将发行1万与2万面值的纸币英国王室又一合照被质疑P图男子被猫抓伤后确诊“猫抓病”

哆哆女性网 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化