WordPress Permalinks Advance Configuration Guide

A permalink is a URL that points to a permanent post or page in WordPress. Its structure is short by default but not SEO Friendly. So, it is the part of the essential configuration for a WordPress Blog. Its structure by default uses the id of the page/article as a unique identifier like

http: //www.Yourdomain.com/?p= 25

Before moving to the Permalinks guide, I want you to have a look on the articles listed below. You can get more information about Essential Configuration of your blog.

Change Permalinks


The structure of the URL matters alot in SEO. You must configure the structure of the URLs of your blog from day One. To access the Permalinks settings, please follow the path. Login to your WordPress Dashboard >> Go to Settings >> Permalinks.

WordPress Permalinks Advance

Custom Structure Layout


As you can see that WordPress allows you to set a custom URL structure for your WordPress Blog. But you must know the tags to configure the custom structure. To configure and customize permalinks rewrite URLs based on our need, WordPress makes available several structures tags:

  • % Year% : Year of publication of an article.
  • % Monthnum% : Month of the year of publication.
  • %% Day : Day of the month of publication.
  • % Hour% : Time of day of publication.
  • % Minute% : Minute time of publication.
  • % Second% : Second minute of publication.
  • % Postname% : Slug section or page.
  • % Post_id% : id of the article or page.
  • % Category% : Slug category section or page.
  • %% Author : id of the author of the article or page.

These tags can be combined, but be careful to put a unique identifier to the end of the structure ( % post_id% or % postname% ) to avoid conflicts.

Two examples of structures optimized for SEO with Article default “Hello World”:

  1. /% Category% /% postname% becomes yourdomain.com / Category / hello-world
  2. /% Postname% -% post_id% becomes yourdomain.com/ hello-world-1

Rename the Categories and Tags Base


By default, the database names for archive pages are category and tag. For example, the archive of the “Blogging” tag is available at yourdomain.com / tag / blogging. In this example / tag / is base. We can rename it through WordPress Dashboard. To configure the base of Categories and Tags, login to your WordPress Dashboard >> Settings >> Permalinks >> Optional.

wordpress permalinks Optional settings

Redirect the Old URL to the New


If you change the permalink of any published post and you want to change the permalink of that post, you should redirect the old URL to the new URL by modifying your .htaccess file or by using 301 Redirection.

301 redirection

I preferer to use Quick Page Post redirect plugin for 301 Redirection, it allows you to redirect your URL in a simple and intuitive way. I found this plugin best for 301 redirection. There are a lot of other plugins available but i prefer to use this one since it is stable and Easy to use.

I will write a detailed article on this plugin soon.

Avoid 404 errors


The choice of permalink is essential and should be done early in the Installation of a WordPress Blog. If the change occurs after the development of a website, this leads to a 404 error on every page when a user tries to access via the old URL

To limit 404 errors when deleting an item, category or tag, I suggest you to use Quick Page/Post Redirect plugin to redirect the old URL to new URL. It will make your life easy. Also have a look on the articles listed below to increase your knowledge about 404 Error.

 

I hope this guide will help you to configure your Custom Structure for WordPress Permalinks. If you have any question related to the article, i will love to answer. Please post it below. Share the post with your friends on Facebook and Twitter.

Post A Reply

CommentLuv badge