Skip to content
Free website migration on every plan, done by our team.Learn more ›
Guides

What is a URL? The parts of a web address explained

What a URL is, each part of a web address (protocol, subdomain, domain, path, query and fragment), and how to write clean, SEO-friendly URLs.

Short answer: A URL (Uniform Resource Locator) is the full address of a page or file on the internet, such as https://auroxhost.com/blog/what-is-dns/. It tells the browser how to connect (https), which website to visit (auroxhost.com) and which page to open (/blog/what-is-dns/). The domain is only one part of the URL.

You use URLs every time you click a link or type an address. Knowing how they're built helps you spot fake links, share the right page and create addresses that search engines and people understand.

The parts of a URL

Take this example:

https://shop.yourbusiness.com/products/shoes?colour=black#reviews

PartIn the exampleWhat it does
Scheme (protocol)https://How to connect. HTTPS is encrypted. See what is HTTPS
Subdomainshop.A section of the site you create. See subdomain vs subdirectory
Domain nameyourbusiness.comThe site's address you register. See what is a domain name
Top-level domain.comThe ending. See what is a TLD
Path/products/shoesThe page or file on the site
Query string?colour=blackExtra details, such as filters or tracking tags
Fragment#reviewsA section within the page

URL vs domain name

The domain (yourbusiness.com) identifies the website. The URL identifies one exact page or file on it. Every page has its own URL; the whole site shares one domain.

How to read a URL safely

The real website is the part just before the first single / after https://, reading the last two parts (or three for endings like .com.ng):

  • https://auroxhost.com.login-check.net/ belongs to login-check.net, not AuroxHost.
  • https://app.auroxhost.com/ belongs to auroxhost.com.

See what is phishing and how to check if a website is safe.

Writing good URLs for your own site

DoAvoid
/blog/how-to-start-a-blog//?p=123
Short, readable wordsLong strings of numbers and codes
Hyphens between wordsSpaces, underscores or capital letters
Lowercase onlyChanging URLs often

In WordPress, choose Settings → Permalinks → Post name. See WordPress permalinks.

When a URL changes

If you rename or move a page, add a 301 redirect from the old URL to the new one, so visitors and search engines follow along and you keep your rankings. See 301 vs 302 redirects and fixing 404 errors.

www or no www?

www.yourbusiness.com and yourbusiness.com are technically different addresses. Pick one as your main version and redirect the other to it. See www vs non-www and canonical tags.

Frequently asked questions

Are URLs case-sensitive?

The domain part isn't. The path can be, depending on the server, which is why lowercase URLs are safest.

What is the difference between a URL and a link?

A URL is the address. A link is clickable text or a button that takes you to that address.

Do URLs affect SEO?

A little. Clear, descriptive URLs help people and search engines understand a page and look more trustworthy in search results. See what is SEO.

What are the tracking codes at the end of some URLs?

Query strings such as ?utm_source=whatsapp tell the site owner where a visitor came from. They don't change the page you see.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.