Do you want to find out how to create custom Permalinks in WordPress?

There are two ways to create a custom permalink (link structure) on WordPress. Often times when users talk about changing the permalink of a WordPress post, in fact they are referring to the post's slug (id). We will therefore show you precisely how to modify the slug of an article.how to create custom Permalinks on WordPress custom permalinks

However, in some cases, users may want to create a completely customized URL structure. We will also show you how this is going.

But before, if you have never installed WordPress discover How to Install a WordPress Blog in 7 Steps et How to search, install and activate a WordPress theme on your blog 

Then back to why we are here.

Method 1. Modifying the Slug of a Permalink

In WordPress, the term slug is used to name the URL of a post, page, tag, or category. It is automatically generated by WordPress and used in the URL when you create a new item.

For example, for an article titled “The 20 Most Amazing Cafes in Manhattan,” WordPress generates the following slug: The 20 Most Amazing Cafes in Manhattan. Depending on the permalink structure you have, your post URL will look something like this:

http://example.com/2016/02/les-20-cafes-les-plus-etonnants-de-Manhattan

Same thing for your pages, custom publications, tags, categories, and custom taxonomies, etc ... Now if you just want to change the permalink slug, that's pretty easy. You can do this without having to install any plugins or write any codes.

Edit the Slug of a post or page

The best way to change the slug of a URL relating to an article, page, or or any other type of post is by modifying these on the edit post screen, look just below the title and you'll see the URL with an edit button right next to it.edit post slug

Clicking this edit button will allow you to edit the slug of the post. You can use alphanumeric characters and dashes in the slug.

custom permalink post

For an optimized URL for SEO, make sure you choose a slug that contains keywords that people use to search for similar content.

Modify Slug Categories and Labels

Changing the slug of categories and labels is also very easy. Just go to Articles »Categories and WordPress will show you the list of categories.editcategories

Discover How to convert categories to taxonomies on WordPress

You can position your mouse on a category and click on the quick edit link. WordPress will show you the title of the category, and the slug of its URL.

See also How to view articles from a category on WordPress

You can then modify the slug and then click on the button " Update To save your changes.quickedit categorieslug

The same method applies for custom labels and taxonomies.

2 method. Creating completely personalized Permalinks

Changing the slug of a post does not change the current structure of your permalink. What if you want to change the permalink for a single post, page, or taxonomy?

See also this article Permalink: How to customize your blog links

For example, if your URL is like this:

http://example.com/2016/02/les-20-cafes-les-plus-etonnants-de-Manhattan

And you want to modify it for something like this:

http://example.com/listes-meilleurs/café/meilleur-café-de-manhattan/

Here is another example. The URL for your category in WordPress is like this:

http://example.com/categorie/voyage

For that particular category, you want to change the URL to something like:

http://example.com/voyage/

In principle, this requires changing the structure of your permalink, but it would affect all the URLs of your website. Here's how you need to create a custom permalink safely without affecting the other URLs of your website.

The first thing you need to do is install and activate the plugin Custom Permalinks. For more details, see our guide step by step on how to install a WordPress plugin.

After activation, you can just edit any post or page and change its url as you want.

You can also edit categories and labels. Just go to Articles »Categories and click the edit link below the category you want to edit.

On the edit category page, scroll down and you will see the "custom permalink" field.custom permalink category

You will be able to do the same for custom labels and taxonomies.

Setting up Redirections for Custom Permalinks on WordPress

When you add a custom permalink to a new post, you don't have to worry about redirects. On the other hand, if you change the URL of an already published article, then you need to configure the appropriate redirects.

Users who go to the old address of search engines and other websites will not be able to find this page unless you set up redirects.

understand How and why you need to change the structure of your permalinks by consulting this article.

Ditto for your categories and labels. You must redirect users and search engines to the new address.

Discover also some premium WordPress plugins  

You can use other WordPress plugins to give a modern appearance and to optimize the handling of your blog or website.

We offer you here some premium WordPress plugins that will help you do that.

1. Click to WhatsApp Chat

Le WordPress Plugin Click to WhatsApp Chat makes it easy for WordPress customers to connect with the website owner or customer support using their WhatsApp account. Click to WhatsApp Chat for WordPress

Just a click on the WhatsApp account and it will be directed directly to the mobile WhatsApp account with a default message. And if the client is on desktop or laptop, he will be redirected to WhatsApp Web.

Read also our article on 10 WordPress plugins to add a Google Maps

This plugin requires the WhatsApp number and time and day, which the website owner or support team will use to discuss. The chat button can be added on the WooCommerce product detail page, which is directly related to that product.

Download | Demo | Web hosting

2. White Label Branding for WordPress Multisite

Do you use a multisite WordPress network? Are you a WordPress developer or a web designer who uses WordPress to create websites for his clients?White Label Branding for WordPress Multisite

Have you ever wished it was easier to customize the menu and logo on each sub-website in your WordPress multisite network? Would you like to give each sub-website the ability to create their own branding? Look no further, this plugin is for you!

See also: 6 WordPress plugins to create a comments section

White Label Branding for WordPress Multisite allows you to control the branding of the main website and all sub-websites in a WordPress multisite network.

This plugin gives you the ability to create a global template that all network subsites will use. Or you can allow each sub-website in the network to create their own branding and customize their menus for the role of editor. You will also have full control over all user roles and capabilities.

Download | Demo | Web hosting

3. WP GeoIP Country Redirect

Le WordPress Plugin GeoIP Country Redirect allows you to automatically redirect your visitors based on their countries and a set of rules that you can define in the WordPress admin panel.WP GeoIP Country Redirect

This plugin automatically detects the country of your visitors and can take the following steps: the redirection to a specific page of your desire.

But you can also add redirect rules for a specific page from a drop-down menu, create a website-wide redirect rule, regardless of the page / article / category it is on. acts. Mass redirection is also available there.

Read also: How to add a WhatsApp button on a WordPress blog

Moreover, it also has a logging function to see installation errors in your WordPress dashboard and the last activity like the last country redirected to which url etc ...

Download | Demo | Web hosting

Other recommended resources

We also invite you to consult the resources below to go further in the grip and control of your website and blog.

Conclusion

Here ! That's it for this tutorial. We hope this article will help you create a custom permalink on WordPress. 

However, you will also be able to consult our resources, if you need more elements to carry out your projects of creation of Internet sites, by consulting our guide on the WordPress blog creation or the one on Divi: the best WordPress theme of all time.

If you have any concerns or suggestions, please let us know within Comments. But meanwhile, share this article on your different social networks.   

...