Understanding URL parts helps to navigate, organize and rank better in the search engine.
What is URL?
URL – Uniform Resource Locator also known as the web address is used to navigate easily around the web. It tells the web browser how and where to find the documents and other resources on the World Wide Web.
One webpage or resource can have multiple URLs. URLs help search engines to understand the content of the webpage. Thus optimizing the URL parts helps search engines like Google, Bing to rank for specific searches.
Every URL is made up of multiple parts. To simplify, The URL is made up of four components.
- A Scheme
- A Host
- A Path
- A Query String
Components of URL
The first three parts are considered to be the most important and widely used as you see in the address bar of your browser. The query string is used to navigating inside the resource, tracking and more.
let’s take a look at the components in detail.
The scheme identifies the protocol to be used to access the resource over the internet (example: HTTP, HTTPS, FTP, mailto, and some more). In web browsing users don’t usually type the protocol when typing the web address, they just start with the domain name or subdomain. But web browser identifies the protocol that needs to be used for the URL like http or https.
HTTPS is considered as secure communication between the browser and the server. And even search rankings are already streamlined towards SSL encrypted websites. And most of the web browsers prefer https so have SSL installed on your website.
A hostname is nothing but an IP address, it helps to recognize and memorize names to numerically addressed Internet resources. A hostname consists of a subdomain (www), Second level domain (digitalgasm) and Top-level domain (.com).
Together the SLD and TLD carry the authority of your website which is known as Domain Authority or Domain link Juice. The hostname is followed by the port number, the default port number to a webpage is :80 but which is not necessary.
The path is like navigating a file into folders on your personal computer. (/blog/seo) is a path to “seo” a resource where the subdirectory is “/blog/“. The subdirectories provide users & search engines to understand the section of the resource. Thus the path is the most important URL parts, optimizing the subdirectory and file name helps in better ranking on search engines.
Query String follows the path and provides a string of information to the resource or file for some purpose. Query string starts with a question mark (?) and separated with an ampersand (&)
Static URL vs Dynamic URL
Static URL: When a webserver delivers the content without any computation or running any database it is known as static URL.
Dynamic URL: When a webserver delivers the content with some required computation it is known as Dynamic URL.
What is Permalink?
Permalink is the full URL used to access the resource, a permalink contains a scheme, hostname and path to the resource. Basically Permalinks are not changed often and simple to remember.
Optimizing the URL parts will help the user to understand the resource and will help to rank better in the search engines. It is recommended to publish the content once after optimizing the URL. Webpages with https protocol rank better so consider installing an SSL and grab a domain name that is unique and short as possible. Here are the tips to optimize your URL path.
1. Add your Keyword
Add the Primary keyword to your URL. Don’t stuff the keywords into your URL. Keep it simple. Example: digitalgasm.com/justseothings
Most of the time you won’t get a backlink with an anchor text then the URL itself acts as anchor text/hyperlink.
2. Hyphen as a separator
Separate your keywords with hyphens, everyone uses hyphens not underscore these days because search engines like hyphens and even Google recommend using the hyphens as a separator. But if you are already using an underscore as separators on a website don’t change it, keep the same as possible.
3. Keep it short & simple
Don’t create a lengthy URL that is hard to remember, some people will copy and paste the title and replace the spaces with hyphens. Don’t do that! And avoid using stopwords (a, an, the, etc) in the URL. Example:
digitalgasm.com/blog/seo/url-parts-detailed-explanation-to-rank better rather create digitalgasm.com/url-parts-optimization
As John Muller mentioned URL length is not a ranking factor in twitter later this February 2020.
But it is recommended to keep as short as possible that would help users to understand and remember the URL.
4. Canonical or 301
If you have multiple webpages with the same content will lead to duplicate content or dynamic contents use canonical URL. If you change your URL, you must redirect the previous link to the updated one. Do know the difference between 301 redirects and 302 redirects. And keep limited redirects per URL not more than 3 because google won’t hop more than 5 redirects.
5. Use Lowercase
Don’t type as like you do for your title. Use lowercase to all the characters, it is better for the users and search engines. Example:
6. Say No to Dynamic URL’s
Make it easy for everyone, search engine and humans. Some dynamic URLs are used for tracking purposes but make sure it worth it. And use robots.txt to block dynamic URL or use the canonical URL.
7. Few Categories
Keep less slug/folder paths in your URL. It’s better to have the keywords near to your domain as possible and it’ll be easier to remember.
Install a plugin or an Addon
Most of the CMS are now equipped with editing the URL you can also avail some plugin to make the work more easier. There are a ton of plugins available in case you are using WordPress like Yoast SEO or Rankmath.
If you want to take a look at the Duplicate URL.
The comment section is yours!