In this section, we will examine the structure of a URL. Consider this section as the framework for a properly formatted web URL.
The protocolEach URL starts with a protocol, with the most prevalent being:
- HTTP (Hypertext Transfer Protocol): The standard protocol for web communication without encryption. It is crucial for fundamental web surfing, yet provides restricted security;
- HTTPS (Hypertext Transfer Protocol Secure): This upgraded form of HTTP incorporates an encryption layer (SSL/TLS) to safeguard the information exchanged between your site and users' browsers. HTTPS is essential for websites that manage critical activities like logins, payments, or personal data.
Why HTTPS is important- Security: HTTPS protects against eavesdropping and data tampering, ensuring that users' information remains private;
- SEO: Search engines like Google give websites protected by HTTPS a boost in position, as they recognise your commitment to your visitor's security;
- User confidence: Observing the ‘HTTPS’ emblem and padlock in their browser fosters greater trust among visitors;
- Performance: Modern web technologies, such as HTTP/2, often require HTTPS, which leads to potential speed benefits.
HTTPS by default: At Studio.351 we always set HTTPS on our clients' websites.
The domain nameYour
domain name serves as the distinct identifier for your website, similar to the street name in your web address. In general, it consists of two fundamental parts:
- Second-level domain (SLD): This is the primary name you select, usually representing your brand or the site's purpose (e.g. ‘studio351’ in ‘studio351.pt’);
- Top-level domain (TLD): This signifies the suffix at the end (e.g. .com, .org, .net, etc.). Numerous TLDs exist, with some being generic, others tailored to specific countries, and some aimed at niche markets.
Types of domainsBelow are a few examples to demonstrate the diverse range of domain names:
- Generic TLDs: .com, .net, .org;
- Country code TLDs (ccTLDs): .uk, .ca, .au;
- New and sponsored TLDs: .blog, .photography, .xyz.
Choosing the right domain for you- Relevance: Align your area of expertise with the emphasis of your brand or website;
- Memorisation: It should be easy to remember and spell;
- Availability: Check that the domain name you want is still accessible;
- TLD factors: .com is generally a reliable option, but other TLDs may be effective if they relate to your niche.
The pathThe path in a URL indicates the precise location of a page, file, or resource within the website's directory layout. It comes after the domain name and employs slashes (/) to divide directories and subdirectories.
ExampleIn the URL https://studio351.pt/blog/url-structure/, the path is /blog/url-structure/. This probably indicates a blog post entitled ‘URL Structure’ in the ‘Blog’ section of the website.
How the path affects navigation and organisation- Intuitive navigation: A properly organized route establishes a coherent flow throughout the website, allowing visitors to locate what they seek more easily;
- SEO indicators: Well-defined structures assist search engines in comprehending the hierarchy and arrangement of website content, thereby enhancing search rankings.
Query parametersQuery parameters are extensions to a URL commonly utilized to transmit particular information or directions to a website. They begin with a question mark (?) and are presented in key-value pairs separated by ‘ampersands’ (&).
Examplehttps://www.studio351.pt/search?q=URL&category=SEO
In this example:
- q is a variable denoting the search request ('URL');
- Category is a parameter that defines the content class (‘SEO’).
How query parameters are used- Filtering and sorting: Actively adjust product lists or blog archives according to user preferences (e.g., size, color, price range);
- Search: Relay a user's search queries to the website's search engine;
- Pagination: Show the current page number in a sequence (e.g. page=2);
- Monitoring: Incorporate campaign tracking codes to observe traffic origins (frequently concealed from the user).
Query and SEO parameters: Potential considerations- Duplicate content: Overusing query parameters can generate numerous URL variations that refer to the same or nearly identical content. This may result in confusion for search engines;
- Crawlability: Not all possible parameter combinations may be indexed by search engines, which could restrict the visibility of certain content on your site.
FragmentsFragments function like anchors on an individual web page. They begin with a hash symbol (#) and denote a particular part of a page. When you click on a link with a fragment, the browser jumps to that specific section.
Examplehttps://studio351.pt/#projects
In this example, the #projects fragment would probably direct the user to the ‘Projects’ section of the web page.
How fragments are used
- Page navigation: Establish index links or ‘jump to’ navigation for extensive pages;
- Scroll position retention: Enable users to return to a designated spot on a page after refreshing or exiting the navigation.
SEO and fragmentsSearch engines don't usually take anything into account after the fragment symbol in a URL. Their main focus is on the main URL when categorising content.