Posted in:

Manage Permalink in WordPress

It is advisable that you change your WordPress permalinks with proper structures, for the default ones are deemed not to be effective. However, this major undertaking requires caution as it may affect your site SEO, and in return affecting your online ranking. It may also result to errors when done incorrectly leading to broken links.

In this case, we have come out a guide on permalinks and how to handle them, with which our readers just require dedication and a little technical knowledge to change the WordPress permalinks successfully. What are Permalinks?

Basic Definition of WordPress Permalinks

what is permalinkThese are the numbers, texts and symbols that appear at the end of the site domain name used to direct the readers to different web pages and to different posts online. These permalinks have a couple of purposes to your readers.

  • They capture the attention of the reader even without opening the links.
  • They optimize your site for SEO purpose with the given keywords.
  • They are a permanent path for your readers and Google searchers to come back to the site.
  • They identify each post on your site.

Default Structure – Do Not Use It!

In the WordPress Dashboard > Settings > Permalinks, you can view and change the settings of permalinks. There are several common settings on the page that you can choose, among which the first one is the default setting of permalink structure.

Permalink Settings

By default, WordPress defines the address of individual posts with a question mark and a string of numbers, just like what shown in the image above. In fact, the numbers in the default permalink structure indicates the place where the content is located in your database.

The default setting is not user-friendly, as it only works for the system and does not suggest any informational or useful content for visitors. Besides, it is not SEO friendly. Why? Because it does not offer any information for search engines, either.

For example, Google states that URLs with relevant and readable words are much better than those with an ID only, thus they can be crawled better. If your permalinks are well structured with keywords of your content included, your site will have more chances to rank better in search engines.

Pre-Made Permalink Structures & Structure Tags

WordPress offers you four options of pre-defined permalink structures which are called Pretty Permalinks, and allows you to set your own by using structure tags. But before making any change, you must make sure that the .htaccess file is writable so that the change can come into effect.

Structure TagsThe pre-made structures are easy to understand, but if you do not like any of them and would like to make your own choice by customizing the custom structure, you have to get some understanding about the structure tags. Altogether, WordPress has ten structure tags which you can use to define the permalinks, as listed and explained in below.

The former six tags are widely used, but the others are used by very few websites. When you use several tags at one time, you only need to separate them with a “/”. For example, you want the format of /year/month/post-name/, then you can fill in “/%year%/%monthnum%/%postname%/”.

  • %year%: The year when the post is published, for example, 2015.
  • %monthnum%:% The month when the post is published, for example, 05.
  • %day%: The day on which the post is published, for example, 12.
  • %post_id%:% The unique ID of the post.
  • %postname%:% The post slug, which refers to the sanitized version of the post title.
  • %category%:% The category name.
  • %author%:% The author name.
  • %hour%:% The hour when the post is published.
  • %minute%:% The minute when the post is published.
  • %second%:% The second when the post is published.

There is one thing that needs special attention. The custom permalink structure needs to be ended with either %post_id% or %postname% no matter which other tags are implemented. Only in this way can you make sure that a permalink points to an individual post instead of possibly several posts on your site.

Which Permalink Structure Is Best for You?

Technically speaking, you can use whichever structure you like as long as it is in a structured hierarchy. However, there are indeed some popular combinations which are commonly used by certain types of WordPress sites. You can make a choice according to your preference, or you can also refer to the suggestions below.

Which Permalink Structure Is Best for YouPost name. Using %postname%, the structure of permalinks should be The benefits of the structure are notable. For instance, the URLs are highly memorable and readable, making things easy to understand. We even use it on this site. If you run a blog, it is a suitable choice for you. You may worry about that it might cause any performance issue, but that is indeed an old story. WordPress has already fixed the problem, after all.

Category + post name. This structure generates URLs like When your site has a clear content structure with a large number of mature and fixed categories, you may need to take this permalink structure into consideration. It tells visitors clearly where they locate, which increases the usability of your site and brings more potential page views.

Month/day + post name. With these structures, the URLs of your site are in this format: or The combinations are good for large news sites which have many posts to publish on a month or day basis. Besides helping visitors calculate the value of news based on time, the structures also assist visitors in locating the news they need quickly.

In most cases, custom structures work with no accidents, but there are also possibilities of permalinks not working. If you are in such a situation, be patient and look into the reasons carefully. The solutions are usually simple.

Category and Tag Base

Right below the Common Settings of permalinks, you can see Optional settings about category base and tag base which are shown in the URLs of category and tag archives. For example, if you have a category named blog, the URL of the category archives would be You can change the category and tag base into whatever you like.

Some webmasters may choose to remove the category base from URLs to make things simpler. This task is easy as you only need to set the custom permalink structure as /%category%/%postname%/ and then put a period for category base. If it is successful, you can get category archives like (“blog” refers to the category name).

Permalink Category Base

How to Change WordPress Permalinks without Affecting the Site

Permalinks need to be as SEO-friendly as your whole site URL, which are easy-to-spell, easy-to-remember, and well-organized. In fact, there are three types of permalinks for WordPress. We’d like to introduce them in the following.

wordpress permalink

  • Default Link – By default, the WordPress permalinks use the query string format that is ugly and hard-to-type, coming with question makes and meaningless letters, symbols, and numbers. It simply looks like
  • Pretty Permalink – This is the ideal permalink that is well-organized with no incomprehensible parameters. Visitors can type or modify the link text to navigate to their targeted posts easily. Besides, they can also guess the posting date, post title, main content, and article category simply by looking at the permalink.
  • PATHINFO Permalink – It looks very like the pretty permalink with the same benefit and functionality. The only difference is that it has a /index.php part inserted in the URL, which just like

Just as we have mentioned before, the default permalink structure is not search engine optimized. Therefore, you need to change the common structure with a pretty format for better usability and compatibility of the links. To do this, firstly you need to make a decision on the items you want to be displayed on the permalink and how they should be displayed.

This includes the date factor. Whether it should be there? Should it show the month only? Should you include day and year? How should the date be arranged on the permalink? Once you have decided what items to use and how to format them, you simply need to log into your WordPress admin panel and click the Settings tab. In the dropdown menu, there is an option called permalink. Click it for permalink configuration.

wordpress permalink setting

Now, you can see 6 common options for you to choose, which include Default, Day and Name, Month and Name, Numeric, Post Name, and Custom Structure. To be frank, according to our own experience, we think the second and the third structure are the best options, for you can present comparably more detailed information for a specific article on the post link. If you are wishing for a short URL, the penultimate one is also worth trying.

Besides, if you don’t want to use these pre-determined structures, you can also decide a custom one on your own. However, you always need to bear in mind that the structure you choose needs to be 100% search engine preferred.

Why Permalinks Not Working & How to Fix It?

As is often the case, not-working permalinks usually result in “404 Page Not Found” errors, which directly brings down referral traffic and search engine traffic considerably. So, what are the factors doomed to cause the permalink not work on earth? As is showed in the below, we make a list of some frequently-occurred mistakes that will lead to this kind of embarrassing situation along with related plausible solutions.

Check Your .htaccess File

As is known, the .htaccess (also hypertext access) file, as a directory-level configuration file, works to permit decentralized web server configurations. In the further, it is very central for webmasters to change permalink structure down the road. Hence, if you have 404 page errors, chances are that you don’t have the .htaccess file or you have changed permalink structure without adding necessary code to the .htaccess file.

Solution: In terms of the absence of .htaccess file, you’d better create it manually or ask your hosting provider for help. On the other hand, to make your newly-updated permalink structure work, you should firstly add a series of code to the .htaccess file or make it writable. If you have little knowledge of coding stuff, you can also choose to add 301 redirect page so as to tell any browser that uses old permalink structure to visit your site where the real content is.

Enable Your mod_rewrite Module

A mod_rewrite module helps to modify the appearance of a website URL and locates on a web server. More than that, this kind of modification can also rewrite your permalinks in order to generate content-relevant and SEO-friendly links (known as pretty, fancy or short URLs) on a webpage. In some cases you have the correctly-updated .htaccess file but still have “Internal Server Error(500)” error, it is likely that the mod_rewrite rule is not working on your server.

Solution: To fix this problem is not difficult, and you only need to copy the following script codes to your .htaccess file. Alternatively, if you happen to a technical novice, you will need to contact your web host so as to get this challenging issue iron out.

  ErrorDocument 404 /index.php?error=404    RewriteEngine On  RewriteBase /  RewriteRule ^index\.php$ - [L]  RewriteCond %{REQUEST_FILENAME} !-f  RewriteCond %{REQUEST_FILENAME} !-d  RewriteRule . /index.php [L]    

Leave a Reply

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