Beijing website constructionCompany Shangpin China: For websites built with WordPress, we will find that the URL address of the article will contain category by default.The url with category not only affects the user experience, but also goes against seo.How can I remove the category in the url?In fact, this is very simple.Here is a brief introduction.
The simplest way to remove category from wordpress blog url is as follows:
Log in to Wordpress background and click "Settings - Fixed Link".
On the opened page, under "Optional", fill in an English dot "." in the text box after the "Category Directory Prefix", and then save the changes. The category in the website will be removed.
Special note: If you modify the link of the original article and the 404 error occurs, it is related to the common settings in your fixed link settings.
If there is no "/% category%/" in the custom structure used for your common settings, the article link cannot be opened.As shown in the figure below:
The above settings.This may cause the original article to fail to open.
In fact, the solution to this problem is very simple.You only need to add/% category% to the custom structure.As shown below:
As shown in the figure above, it is OK. This method has been used in my blog and proved to be completely feasible.
Note: The/% category% here is different from the category in the URL. You can see the effect of the URL after setting it.
In addition, in order to make WordPress blog more conducive to seo, our next article will introduce the methods related to WordPress fixed link setting in detail.