How to change Permalink Structure in WordPress?

A permalink is the permanent URL of a live webpage (blog post, page etc.). It is the link that gets shared online and brings in visitors to a webpage. Popular blogging platform WordPress supports pretty permalinks. In fact, it offers a handy interface to edit permalink structure right from the admin dashboard. Want to change permalink structure of a WordPress blog? Not sure how to do that? Continue reading and follow the steps.

WordPress Custom Permalinks

Steps to Change WordPress Permalink Structure:

  1. Login to your WordPress blog admin area.
  2. Go to admin menu on left and open Permalinks from Settings menu.
  3. WordPress Permalink Settings screen will appear. Under the heading Common Settings, there are 6 selectable options. The first one is default. To use a pretty permalink choose and one of the next 4 options. If you want to use your own (custom) settings, select the last option and enter proper structure tags in the empty field.
  4. Press the Save Changes button.

What to use in your Custom Permalink Structure?

If you want to use Custom Structure for your blog permalink, you need to know the allowed tags. Following structure tags are supported by WordPress.

  • %postname% : A sanitized version of the blog post title. Example: sample-blog-post
  • %post_id% : This will show the unique ID of the blog post. Example: 1234
  • %category% : A sanitized version of the Category name will be displayed. Example: sample-category
  • %author% : A sanitized version of the author name will appear in the URL. Example: john-doe
  • %year% : Year in four digit (from blog post publish date). Example: 2013
  • %monthnum% : Month in two digit (from blog post publish date). Example: 07
  • %day% : Day in two digit (from blog post publish date): Example: 01
  • %hour% : Hour in two digit (from blog post publish time): Example: 16
  • %minute% : Minute in two digit (from blog post publish time): Example: 49
  • %second% : Second in two digit (from blog post publish time): Example: 02

You can use any one or more on your permalink structure. You can even add static words. But don’t forget to use either %postname% or %post_id%  on your permalink. Otherwise you will have a pretty mashed up blog!

Note: In order to use pretty permalinks, your blog must be running on an Apache web server with the mod_rewrite module installed. Also required are .htaccess file on your home directory (WordPress will try to create one automatically), FollowSymLinks option enabled and FileInfo directives allowed. If mod_rewrite is not available as in case of IIS or lighttpd, you need to follow a different approach. For more information, refer official WordPress document on using permalinks.

Add Your Comment