URL

This page is related to the service: Web Design
Learn more

A URL (Uniform Resource Locator) is an address that identifies the location of a page, file, or other resource and indicates how it can be accessed. A URL may point to a web page, image, video, PDF document, CSS file, or API endpoint.

A user can enter a URL directly into a browser’s address bar or follow it by clicking a link. URLs are also used by search engines, applications, analytics platforms, and other services that communicate over the internet.

What are the parts of a URL?

A URL may look like this:

https://www.example.com/guides/url-structure/?sort=newest#url-components

Each part of this address serves a particular purpose:

  • https is the scheme that specifies how the resource should be accessed, in this case through HTTPS;
  • www is an optional subdomain;
  • example.com is the domain name;
  • /guides/url-structure/ is the path to the resource;
  • ?sort=newest is a query containing a parameter passed to the page or application;
  • #url-components is a fragment identifying a particular location within the document.

A URL can also include a port number, user information, or multiple parameters. Most web addresses do not use every component available in the URL syntax.

The visible path does not necessarily represent actual folders and files stored on a server. A content management system or web application can interpret the path as an instruction that determines which content should be generated.

How is a URL different from a domain and a link?

A domain is only one part of a URL. For example, example.com is a domain, while https://www.example.com/services/web-design/ is a complete URL pointing to a specific page. A single domain can contain thousands of different URLs.

A link is an element that allows a user or application to navigate to a resource. Its destination is usually defined by a URL. A URL can also appear as plain text without being an active, clickable link.

Technical documentation may also use the term URI (Uniform Resource Identifier). URI is a broader concept associated with identifying resources, while URL has traditionally referred to an identifier that also describes the location or access method. In everyday web development, URL is by far the more common term.

What is the difference between an absolute and a relative URL?

An absolute URL provides the complete address, including the scheme and domain:

https://www.example.com/contact/

A relative URL is interpreted in relation to the current page or a previously defined base URL:

/contact/

Relative references are frequently used in website code for internal links, images, stylesheets, and other files. The same relative value may point to a different location depending on the context in which it appears.

Does every URL point to a web page?

A URL may identify an HTML document, image, recording, downloadable file, data feed, or resource processed by an application. Schemes other than http and https also exist. For example, mailto URLs are commonly used to open an email application.

The existence of a URL does not guarantee that the resource is available. The server may return a 404 error, require authentication, deny access, or redirect the request to another URL. The content available at an address may also change over time.

Why does URL structure matter for SEO?

URLs are part of a website’s technical structure. A readable address can help users understand what to expect before opening a page and can make the organization of a website clearer to search engines.

When creating URLs, it is generally helpful to:

  • use concise, descriptive words related to the page’s content;
  • use the language understood by the website’s audience;
  • separate words with hyphens, such as /website-accessibility/;
  • avoid unnecessary identifiers, parameters, and random character strings;
  • use lowercase letters consistently;
  • maintain a logical and reasonably stable URL structure;
  • avoid adding repeated keywords solely to influence search rankings.

The same content may sometimes be available through several URLs, including versions with tracking or filtering parameters. Redirects, canonical links, and consistent internal linking can help identify the primary version. Without these signals, a search engine may have difficulty determining which URL should represent the content.

A descriptive URL does not guarantee higher rankings. It should be treated as part of a well-organized website architecture rather than as a standalone SEO technique.

What should happen when a URL changes?

Changing a URL without the appropriate configuration causes existing links to lead to an error. This can disrupt navigation, weaken internal linking, and result in lost visits from search engines, external websites, saved bookmarks, or previous campaigns.

After permanently changing a URL, the website owner should:

  • create a 301 or 308 redirect from the old address to the most relevant new address;
  • update internal links;
  • correct the page’s canonical URL;
  • update the XML sitemap;
  • review links used in advertisements, messages, and external profiles;
  • verify that both the redirect and the new URL work correctly.

Existing URLs should not be changed solely for cosmetic reasons when the potential benefit does not justify the work and migration risk involved.

How can URLs be used safely?

Before opening an unfamiliar link, users should identify its actual domain. Attackers may use long addresses, misleading subdomains, or names resembling established brands to conceal the real destination.

The presence of https:// means that a connection to a particular server can be encrypted and authenticated with a certificate. It does not prove that the website itself is honest, safe, or operated by the organization it appears to represent.

Passwords and other confidential information should not be placed in URLs. Addresses may be retained in browser history, server logs, analytics tools, and other systems. Shortened links also require caution because they may conceal their final destination until they are opened.

The right service for you

Web Design

Planning something similar? Tell us about your goals and scope, and we’ll recommend the right solution and prepare a tailored quote.

Request a quoteView service