Parts Url

An In-Depth Look at the Components of a URL for Improved Website Optimization

When it comes to optimizing your website, URLs may seem like a small detail. But in reality, they play a critical role in enhancing both user experience (UX) and search engine optimization (SEO). To gain a solid understanding of the various elements that make up a URL, let's take a closer look at each component.

The Anatomy of a URL

A URL consists of ten essential parts - the scheme, subdomain, top-level domain, second-level domain, subdirectory, parameter, port, path, query, and fragment. While not all URLs will include every part, they will always have at least three of them.

Here is a breakdown of the fundamental components of a URL. Every URL will have a scheme or protocol, a domain name, and a path. However, there may be additional attributes beyond these basic elements. Let's explore the structure of a URL in more detail below.

1. Scheme

The scheme, also known as the protocol, specifies which protocol a web server should use to access a page on your website. Currently, the most common and recommended scheme is HTTPS - Hypertext Transfer Protocol Secure. This protocol ensures that any information entered on your website, such as passwords or credit card details, is encrypted to prevent cybercriminals from accessing it. Implementing HTTPS is crucial for protecting your website visitors and can also improve your site's ranking on search engines. In fact, implementing SSL should be a top priority on any technical SEO guide.

Other schemes you may come across are mailto://, which can open your computer's default email service to compose an email to the address entered in the URL, and ftp://, a standard protocol for transferring computer files between a client and server on a network.

2. Subdomain

If your website were a house, the subdomain would be specific rooms within that house. A subdomain in a URL indicates which particular page of your website the web browser should serve. For example, a subdomain like "blog" or "offers" would lead to your website's blog or offers page.

This subdomain also categorizes your website's content and shows both visitors and search engines that your site contains more than just a homepage.

3. Second-level Domain

The second-level domain (SLD) is your website's name, which helps people identify your brand. For instance, visitors to "mlb.com" know they are on Major League Baseball's website without any further explanation.

4. Top-level Domain

The top-level domain (TLD) indicates the type of entity your organization represents on the internet. For example, ".com" is intended for commercial entities in the United States, so many American businesses register with a top-level domain of ".com". Similarly, ".edu" is meant for academic institutions in the US, prompting American colleges and universities to use this top-level domain.

5. Subdirectory

A subdirectory, also known as a subfolder, helps both users and web crawlers understand the specific section of a webpage they are on. For example, if your online store sells t-shirts, hats, and mugs, the URL for your "hats" page could look like "

Quiz questions showing the correct answer and a leaderboard with friends.

Create marketing notes and questions for free

96% of learners report doubling their learning speed with Shiken

Join Shiken for free

Try Shiken Premium for free

Start creating interactive learning content in minutes with Shiken. 96% of learners report 2x faster learning.
Try Shiken for free
Free 7 day trial
Cancel anytime
30k+ learners globally
Shiken UI showing questions and overall results.

Explore other topics