How WordPress removes the category from the URL

Source: Internet
Author: User

WordPress site URL is generally the default Category, not conducive to optimization is not conducive to user experience, how to remove, Shaoguan SEO Blog recommended 2 kinds of relatively simple method.


First: Change the pinned Link.


1, login WordPress Backstage, click on the fixed connection inside the set.

2, in the "optional" under the "Directory Prefix" box to fill in the English ".", Save the changes, you can remove the category.


3, the above steps completed after the page still cannot open or a 404 error, may be related to your fixed link settings commonly used settings, if this happens only need to add "/%category%" in the custom structure. As shown in the following:

4, need to note is here /%category% and the category is not the same in the URL , to Here WordPress Remove URL in Category the setup process is complete as well.


The second type: Install the plugin.


Installation steps:
1, login to the background of the site, click on the left sidebar "plug-in" and then click on the right side of the "Add new plugin" above the interface.
2, enter "No category parents" search in the Search box, then click the first one in the search results, click "Install Now", then click "Enable Plugin" below the installation results to complete the installation step.
3, this plug-in is not required any settings, we can look at the current classification of the link, the URL of the "category" has disappeared, the URL has been shortened, only the domain name + category directory alias.


This article is from the "Ho Jasper Blog" blog, please be sure to keep this source http://hebiyu90.blog.51cto.com/9736895/1590768

How WordPress removes the category from the URL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.