Let's discuss permalinks. But first, let's take a look at the topics we'll be discussing today. Slugs and permalinks will be defined. We'll be altering category and tag links, redirecting links using a plugin, and finally changing permalinks using the built-in WordPress settings.
Therefore, let's begin. How do permalinks work? Permanent links are known as permalinks. An individual page or blog post's permalink, along with its categories and tags, are URLs. Watch this in action now. Visit my website by clicking top left, and you'll see that each of the pages and posts has its own distinct URL.
The URL for our home page, or permalink, comes first. Go to one of our pages and click on History of Travel; you'll get the special URL for this page here. You'll also notice that the permalink for each of our other pages finishes with the page's name as we move on. Posts will now be the centre of our attention. So let's start a new post. As you can see, the permalink includes both the post's title and a date. Go back and check out our Go Local post.
And if we look closely, the permalink includes both the post's title and the date. Finally, let's head over to one of our newly formed categories, Travel. Then how will a category permalink appear? Category and the category's name are included in the permalink.
Your URL's final segment is referred to as a slug. Slugs are sometimes referred to as approachable names. It refers to the part of the URL that points to a certain page. Slugs frequently resemble the post's or page's original title closely or even perfectly match it. Also, keep in mind that hyphens are used in place of spaces when a title contains more than one word.
Let's look at how to modify our permalinks to a more readable or user-friendly format by going to our Media Settings. Scroll down to Permalinks in Settings once you are in your dashboard. As you can see, our blog entries currently end with the day and post name.
This will open up to your permalink settings. I think you'll agree it's easier to read if we modify it to only show the post name. You can choose from the options provided or use the available tags to design your own unique structure. Let's return to our website to examine how the URL structure for our blog entries has altered after you've saved your adjustments, So open up your blog post and as you will notice the date is no longer there.
Let's talk about categories and tag permalinks last. The World Is Your Oyster post shall now be opened. You may see the category Travel and the tag Adventure by scrolling down. Let's select Travel; as we've seen before, the permalink includes the category name and concludes with that.
The permalink finishes with tag and the tag's name if we go back and click on the Adventure tag. By going back to our dashboard, selecting Settings, and then clicking on permalinks once more, we can modify the link structure. If you like, you can specify custom structures for your category and tag URLs below, it indicates below Optional at the bottom.
So we may alter it to something like Topics instead of Categories. And you can use keywords, for example, in place of your tag permalinks, Tags. Returning to our website after saving our adjustments. When we click on the travel category in the open post, the URL now reads themes and travel rather than categories in travel. The tag is subject to the same rules. When we open the tag for the adventure, it now says keywords and adventure rather than tags and adventure.
Finally, we must discuss permalink redirection. Make sure to only modify your link structures after publishing a new blog post or web page. On an established website, visitors won't be automatically forwarded to the new link if an old permalink is changed. An old post's links on other web pages will no longer function if the post's permalink is changed. Therefore, you must ensure that you instal a plugin to redirect your old URLs if you don't want to harm your search engine ranking or visitors to your established site.