How to set SEO Friendly Permalink Structure in WordPress

WordPress is getting way better day by day because you don’t have to learn any web development coding in order to work with WordPress. We must be thankful to Matt Mullenweg (founder of WordPress) who have made blogging easier today. Otherwise, you would have been coding into your apache .htaccess server file to make your site’s permalinks SEO friendly.

We have been publishing guides and tutorials for WordPress community. In this tutorial, we have written about how to set SEO friendly permalink structure in WordPress.

Setting up SEO friendly permalinks in WordPress

As we all know, that the permalink of a blog post plays a vital role if you want to make your site search engine friendly. By default, the permalink structure of WordPress blog is like which is not SEO friendly permalink structure and doesn’t make sense either. The default permalink structure is useless by SEO purposes. Let me show you an example of what I’m trying to explain.

In the following snippet image, you can see that the mentioned blog post’s URL contains keywords that the website owner want to target in search results. That’s what we call a completely optimized SEO friendly permalink structure.

For Example:

In order to set SEO friendly permalink structure, follow the steps below:

  • Go to Settings → Permalinks
  • Which is where we set permalinks of our blog
  • For SEO friendly structure select → Custom Structure
  • Add this snippet code inside the box: /%category%/%postname%/
  • It is the most used permalink structure know for SEO friendly URLs
Custom Structure: /%category%/%postname%

A list of Variables (If you use WordPress SEO by Yoast)

These tags can be included in templates and will be replaced only by using WordPress SEO by Yoast when a page is displayed.

%%date%% Replaced with the date of the post/page
%%title%% Replaced with the title of the post/page
%%sitename%% The site’s name
%%sitedesc%% The site’s tagline / description
%%excerpt%% Replaced with the post/page excerpt (or auto-generated if it does not exist)
%%excerpt_only%% Replaced with the post/page excerpt (without auto-generation)
%%tag%% Replaced with the current tag/tags
%%category%% Replaced with the post categories (comma separated)
%%category_description%% Replaced with the category description
%%tag_description%% Replaced with the tag description
%%term_description%% Replaced with the term description
%%term_title%% Replaced with the term name
%%pt_single%% Replaced with the post type single label
%%pt_plural%% Replaced with the post type plural label
%%modified%% Replaced with the post/page modified time
%%id%% Replaced with the post/page ID
%%name%% Replaced with the post/page author’s ‘nicename’
%%userid%% Replaced with the post/page author’s userid
%%searchphrase%% Replaced with the current search phrase
%%currenttime%% Replaced with the current time
%%currentdate%% Replaced with the current date
%%currentday%% Replaced with the current day
%%currentmonth%% Replaced with the current month
%%currentyear%% Replaced with the current year
%%page%% Replaced with the current page number (i.e. page 2 of 4)
%%pagetotal%% Replaced with the current page total
%%pagenumber%% Replaced with the current page number
%%caption%% Attachment caption
%%focuskw%% Replaced with the posts focus keyword
%%cf_<custom-field-name>%% Replaced with a posts custom field value
%%ct_<custom-tax-name>%% Replaced with a posts custom taxonomies, comma separated.
%%ct_desc_<custom-tax-name>%% Replaced with a custom taxonomoies description
%%sep%% The separator defined in your theme’s wp_title() tag.


  1. SEO friendly permalinks definitely help increase site appearance in search results. Well written @haroonbro keep it up.


    1. That’s right. SEO permalinks is what every blogger needs in order to get his/her blog on search results.


Leave a Reply

Your email address will not be published. Required fields are marked *