Before URLs Structure, we started with What are Semantic URLs and Slug?
It is also said to be as Clean URLs, user-friendly URLs or SEO Friendly URLs Structure and also sometimes referred to as RESTful URLs.
In WordPress, you can choose post name as SEO Friendly URLs Structure. You can observe the below screenshot.
A slug as the part of a URL that identifies the relative URL part of the page in humanly understandable keywords. It is said to be an end part of the URL. which is similar to the basename of the URLs structure. It is also called as a short label or short name of the URL or basename of the URL.
The slug may contain in lowercase letters, uppercase letters, numbers, dash(hyphen-), underscore(_) but lowercase letters and good keywords are best for SEO.
The slug which acts as name format of the URL structure For example, in a website entry URL: https://www.example.com/tutorials/ [“tutorials” is the slug of the URL]
Also Read : What is an SEO Friendly URLs and Best Permalink Structure for WordPress?
Absolute vs Relative URLs Structure:
Internal Linking is one of the Google SEO factors. whenever you doing the internal linking process on any page/post of the site the hyperlink URLs Structure should be two types those are absolute URLs Structure and relative URLs Structure.
Absolute URLs Structure:
Absolute URLs means it has full URL path structure. It requires full address For an example of an absolute URL would look like as below
<a href=”http://www.example.com/page-name/”>Anchor Text</a>
<a href=”http://www.example.com/blog/page-name/”>Anchor Text</a>
Relative URLs Structure:
Relative URLs means it has shortened URL path structure. It does not use the full address For an example of a Relative URL would look like as below
<a href=”/page-name/”>Anchor Text</a>
<a href=”/blog/page-name/”>Anchor Text</a>
Which one is best and Why we Choose Relative URLs?
When we are dealing with big projects some time we are missing any path of the URLs that time search engines like google, bing, yahoo… consider as broken links. This why we choose the relative URLs on every page/post of the site.
Advantages of Relative URLs:
- 1. Helps Search Engines for better crawling or reading the URLs.
- 2. It will help to improve your site’s SEO
- 3. It occupies less space and improves the page Faster loading times.
- 4. Much easier to Coding for large websites.
- 5. Relative URLs allows same URLs in both staging and production environment. when we are in staging the domain name is different and production is different that’s why relative URLs are better for both environments and everyone should understand easily.
Also Read : How to Flushing the Rewrite URL’s or permalinks in WordPress Dashboard?