A permalink or permanent link is the address (URL) of a web page. It is called permanent link because it’s not expected to change throughout the life time of a page.
In this post, you will learn everything you ever need to know about permalinks.
In particular I will explain:
- What are the main characteristics of permalinks
- How to make your permalinks SEO friendly
- What to do if you need to change a permalink.
Permalink Characteristics
Let’s start with a quick introduction to URLS.
Each and every page published on the web has a unique Uniform Resource Locator, commonly known as a URL.
The URL represents the address of a page and it is expected to remain the same as long as the page is published on the web. Thus, it sometimes referred to as permalink.
The permalink structure of a website is a term that describes how the permalinks of each and every page will look like.
Don’t worry if this is confusing now, read on and you will understand in a bit what is the relationship between permalinks and permalink structure and how it affects your SEO.
Here is an example of a permalink: https://www.reliablesoft.net/seo-strategy.
A permalink is made of two parts:
- The website domain
- The page slug
The website domain can also include the protocol i.e. https:// or http:// and or www.
The page slug is what comes after the domain slash (/).
The max length of a permalink is 2083 characters but in general the shorter, the better.
How to create SEO Friendly Permalinks
A permalink should have all the characteristics of an SEO friendly URL. Best practices are:
It should start with https – This indicates that the webpage is secure, which means that any information transmitted between the web browser and web server is encrypted.
It should be short and descriptive – A permalink should be short without having unnecessary information but at the same time, it should describe what a page is about.
For example, look at these two permalinks:
https://www.example.com/what-is-seo
https://www.example.com/2019/12/a/d/DFI_U.html
Just by looking at the first one, you know what to expect before visiting a page while the second one contains information that does not help users or search engines.
In many cases, a permalink is shown in the search engine result pages (SERPS) and thus it is important to be meaningful as well.
It needs to include SEO keywords – SEO keywords are the search phrases users type in a search engines search box.
By including those terms in your permalinks, you give search engines a strong clue about the content of a page and this increases your chances of ranking high for those keywords.
It also gives users a big hint of what to expect by visiting the particular page.
Words in permalink should be separated by dashes – Any words that make up a permalink should be separated by ‘-‘ and not any other characters.
Permalinks are lowercase – To avoid any issues, all letters in a permalink should be lowercase. This is because some web servers treat uppercase characters differently.
Should not include stop words – These are common words that don’t add any value or help in understanding the actual content of a page.
For example, words like “a”, “the”, “on”, “and”, “is”, “of”, “you” and other similar words.
Permalinks in WordPress
WordPress is one of the most popular CMS platforms and the first platform to use the term ‘Permalink’.
You can find the ‘Permalinks Settings’ under SETTINGS.
WordPress gives you a number of options for setting up the URL structure of your posts. The best setting to use is the ‘Post Name’.
With ‘Post Name’ your permalinks will not contain any unnecessary information. When you publish a new page, WordPress will take whatever you type in the page title and separate it by dashes ‘-‘.
How to change the permalink without losing SEO?
Although the idea of a permalink is to be permanent, there are valid cases where you might want to change it.
For example, during an SEO audit, you might decide to make your URLS shorter by removing date information.
In order not to negatively affect your SEO, you need to ‘tell’ search engines that you are changing the URL so that they can update their index.
If you make the change without informing them, they will consider it as a new page. This means that any backlinks pointing to the page will be lost and any users that bookmarked the page will get a 404 error, since the page has changed address.
To avoid these issues and maintain your SEO rankings, you need to add a 301 redirection to your .htaccess file to inform search engine crawlers about the change.
Here is a step by step example:
Let’s say that your current permalink is:
https://www.reliablesoft.net/this-is-a-long-permalink-to-be-made-shorter
and you want to change it to:
https://www.reliablesoft.net/permalinks
If you are on WordPress you can change the permalink of a page by editing the URL right below the title.
Step 1: Visit the page in EDIT mode, change the URL and click the UPDATE button.
Step 2: Using an FTP program, locate the .htcaccess file found in the ROOT folder of your website, download it to your local PC and edit it using Notepad or other text editor.
Step 3: Add the following line and save the file.
Redirect 301 /this-is-a-long-permalink-to-be-made-shorter https://www.reliablesoft.net/permalinks
Notice that you don’t need to include the domain name for the [source] URL but you need to include the full permalink for the [target URL].
Step 4: Upload the file back to your webserver.
Step 5: Open a new browser window and test and everything is working as expected. If you type the OLD URL in the browser, you should be redirected to the new page.
Step 6: Go to Google Search Console and use the URL Inspection Tool to make sure that search engines can access the new permalink without any problems.
Step 7: Make sure that the new permalink address is included in your XML Sitemap.
Key Learnings
A permalink is a term that describes the URL of a page. Any page published online must have its own unique permalink.
You can safely change the permalink of the page but in order to maintain your SEO rankings you need to add a 301 redirection so that search engines and users can navigate to the new address without getting a NOT FOUND (404) error message.
Leave a Reply