Parts of a URL: A Short Guide (2024)

If your website is structured like a house, then your website’s URL is like that house’s address. It defines where your website lives online, similar to how your home address determines where you live in a neighborhood, helping your visitors easily find your site. URLs also help Google understand what your website's pages are about.

Parts of a URL: A Short Guide (1)

There are several URL parts, and they’re discreetly important for optimizing your site’s user experience (UX) and SEO. To help you develop a concrete understanding of every part of a URL, let’s explore each of them in detail.

What are the parts of a URL?

A URL consists of ten parts: the scheme, subdomain, top-level domain, second-level domain, subdirectory, parameter, port, path, query, and fragment. While a URL doesn’t have to contain all of these parts at once, it will always have at least three of them.

Below is an illustration of the basic parts of a URL. A URL will always have a scheme or protocol, a domain name, and path.

Parts of a URL: A Short Guide (3)However, URLs may contain more attributes than the basic components listed above. Let's take a comprehensive look at URL structure below.

URL Structure

Parts of a URL: A Short Guide (4)

1. Scheme

Parts of a URL: A Short Guide (5)The scheme (also called protocol) tells web servers which protocol to use when it accesses a page on your website.

Nowadays, HTTPS — which stands for Hypertext Transfer Protocol Secure — is the most common scheme. It tells your web browser to encrypt any information you enter onto the page, like your passwords or credit card information, so cybercriminals can’t access it. This security protocol protects your website visitors and implementing it will help your site rank better on Google. That's why implementing SSL is a must-do on any technical SEO guide.

Other schemes you might see are mailto://, which can open your computer’s default email service provider to help you draft an email to the email address you entered in the URL, and ftp://, which is a standard protocol for transferring computer files between a client and server on a computer network.

Parts of a URL: A Short Guide (6)

Free Website Optimization Checklist

This website optimization checklist will help you perfect your website's:

  • Performance
  • SEO
  • Security
  • Mobile Performance
Learn more

    Download Free

    All fields are required.

    Parts of a URL: A Short Guide (7)

    You're all set!

    Click this link to access this resource at any time.

    Download Now

    2. Subdomain

    Parts of a URL: A Short Guide (8)If your website is like a house, your subdomains are like specific rooms in that house. A subdomain in a URL indicates which particular page of your website the web browser should serve up. For instance, subdomains like “blog” or “offers” will provide your website’s blog page or offers page.

    Subdomains also bucket your website into its main content categories and shows Google and your visitors that there's more information on your site than just a homepage.

    3. Second-level Domain

    Parts of a URL: A Short Guide (9)Your second-level domain (SLD) is the name of your website. It helps people know they’re visiting a certain brand’s site. For instance, people who visit “mlb.com” know they’re on Major League Baseball’s website, without needing any more information.

    4. Top-level Domain

    Parts of a URL: A Short Guide (10)The top-level domain (TLD) specifies what type of entity your organization registers as on the internet.

    For example, “.com” is intended for commercial entities in the United States, so a lot of American businesses register with a top-level domain of “.com”. Similarly “.edu” is intended for academic institutions in the United States, so a lot of American colleges and universities register with a top-level domain of “.edu”.

    5. Subdirectory

    Parts of a URL: A Short Guide (11)A subdirectory — also known as a subfolder — helps people as well as web crawlers understand which particular section of a webpage they’re on.

    For instance, if you own an online store that sells t-shirts, hats, and mugs, one of your website’s URLs could look like “https://shop.yourstore.com/hats”. Notice that the subdomain is “shop” and the subdirectory is “hats." That means this URL would serve up the “Hats” page, which is a subfolder of the “Shop” page. T-shirts and mugs would be other subfolders of this page.

    6. Port

    The port is a number used to specify a connection endpoint and to direct data to a specific service. Different servers will use different port numbers. This number is always associated with a host network address, like an IP address. For example an HTTP server is identified using 80, while an HTTPS server uses 443 as its port number.

    Parts of a URL: A Short Guide (12)

    7. Path

    The path specifies the location of the file or resource that the user wants to access. In the example below, the specified path would be the article “parth-url.”

    Parts of a URL: A Short Guide (13)

    8. Query

    Ever noticed a question mark displayed in some URLs when Google displays your search results? That question mark says that a specific query is being performed and is used to precede a query string. A query string specifies the parameters of the data being asked from a website’s database. We’ll dig into parameters next.

    Parts of a URL: A Short Guide (14)

    9. Parameters

    Parameters are the values being queried during a search. The parameter can be a number, encrypted value, search term or other data that can be found on the website. URL parameters contain a key and value, separated by an equal sign (=). A URL can contain multiple parameters, which are then each separated with an ampersand (&).

    Written out, the structure would look like this:

    https//www.hubspotexample.com/page?key1=value1&key2=value2

    Parts of a URL: A Short Guide (15)

    UTM parameters are used to track your marketing or promotional efforts. Added to the ends of URLs these parameters can track how visitors are coming to your site and if they’re interacting with an associated marketing campaign.

    10. Fragments

    Fragments are an optional component of URLs that are typically placed at the end with a hash (#). They indicate a specific location on the webpage like an ID or name attribute, but can also direct to other resources like a footer, or sidebar.

    Parts of a URL: A Short Guide (16)

    URL Structure: Subtle Yet Essential

    Even though URLs might seem simple and arbitrary, they’re actually important for your website’s UX and SEO. And now that you understand each of the URL parts, check out the blog posts below to learn more about technical SEO.

    Editor's note: This article was originally published in October 2021 and has been updated for comprehensiveness.

    Topics: Technical SEO

    Parts of a URL: A Short Guide (2024)
    Top Articles
    Move From OTC to a Major Exchange
    Why YNAB is Different | YNAB
    Warren Ohio Craigslist
    My Boyfriend Has No Money And I Pay For Everything
    How To Get Free Credits On Smartjailmail
    Cosentyx® 75 mg Injektionslösung in einer Fertigspritze - PatientenInfo-Service
    Https Www E Access Att Com Myworklife
    Mercy MyPay (Online Pay Stubs) / mercy-mypay-online-pay-stubs.pdf / PDF4PRO
    Evil Dead Rise Showtimes Near Regal Columbiana Grande
    The fabulous trio of the Miller sisters
    Crossword Nexus Solver
    The Superhuman Guide to Twitter Advanced Search: 23 Hidden Ways to Use Advanced Search for Marketing and Sales
    Payment and Ticket Options | Greyhound
    Leader Times Obituaries Liberal Ks
    Der Megatrend Urbanisierung
    Uktulut Pier Ritual Site
    Universal Stone Llc - Slab Warehouse & Fabrication
    Team C Lakewood
    Dr Ayad Alsaadi
    Baja Boats For Sale On Craigslist
    Craigslist Battle Ground Washington
    Kentuky Fried Chicken Near Me
    What Individuals Need to Know When Raising Money for a Charitable Cause
    Essence Healthcare Otc 2023 Catalog
    Urban Dictionary Fov
    Marquette Gas Prices
    Saxies Lake Worth
    Temu Seat Covers
    Best Town Hall 11
    Big Boobs Indian Photos
    Progressbook Newark
    Cbs Trade Value Chart Week 10
    UPS Drop Off Location Finder
    Most popular Indian web series of 2022 (so far) as per IMDb: Rocket Boys, Panchayat, Mai in top 10
    Tamilyogi Ponniyin Selvan
    Royals op zondag - "Een advertentie voor Center Parcs" of wat moeten we denken van de laatste video van prinses Kate?
    Missouri State Highway Patrol Will Utilize Acadis to Improve Curriculum and Testing Management
    Synchrony Manage Account
    Are you ready for some football? Zag Alum Justin Lange Forges Career in NFL
    Mixer grinder buying guide: Everything you need to know before choosing between a traditional and bullet mixer grinder
    Gold Dipping Vat Terraria
    Pokemon Reborn Gyms
    Frigidaire Fdsh450Laf Installation Manual
    Walgreens On Secor And Alexis
    Pike County Buy Sale And Trade
    Po Box 101584 Nashville Tn
    Reilly Auto Parts Store Hours
    The Many Faces of the Craigslist Killer
    Headlining Hip Hopper Crossword Clue
    Turok: Dinosaur Hunter
    Minute Clinic Mooresville Nc
    Erica Mena Net Worth Forbes
    Latest Posts
    Article information

    Author: Pres. Lawanda Wiegand

    Last Updated:

    Views: 6116

    Rating: 4 / 5 (51 voted)

    Reviews: 82% of readers found this page helpful

    Author information

    Name: Pres. Lawanda Wiegand

    Birthday: 1993-01-10

    Address: Suite 391 6963 Ullrich Shore, Bellefort, WI 01350-7893

    Phone: +6806610432415

    Job: Dynamic Manufacturing Assistant

    Hobby: amateur radio, Taekwondo, Wood carving, Parkour, Skateboarding, Running, Rafting

    Introduction: My name is Pres. Lawanda Wiegand, I am a inquisitive, helpful, glamorous, cheerful, open, clever, innocent person who loves writing and wants to share my knowledge and understanding with you.