Remove category & tag base from WordPress url
October 10, 2016 Comments 0 145 Views

Remove category & tag base from WordPress url

WordPress permalinks add category as a base in URL of categories where your URL becomes /category/categoryname/ there is no issue in using this URL. But still many of us need to remove this category or tag base from the url to keep it short and more seo friendly. So here are 3 methods to remove category base.

Following are the 3 methods to remove category & tag base from wordpress URL :

Remove category & tag base from wordpress URL without using any plugin.

Login to WordPress Admin and go to Settings => Permalinks and then follow below steps to remove category & tag base.

  • Set your permalinks Custom Structure as =>  /%category%/%postname%/
  • Set Category base =>  (dot not /) only add DOT
  • Save the permalink structure and it will work 100% fine. Just go to front-end and check the URL’s

Refer below screen for reference :

Remove category & tag base from WordPress url

This will remove the category tag base without using any additional plugins.

Removing Category From Your URLs With .htaccess

To remove the category base manually in the .htaccess file just add this line of code.

Removing The Category Base with the Remove Category URL Plugin

You can also remove the category base using plugin where you just need to install plugin and activate and make correct settings. We do not recommend this method because too many plugins will slow your website down and require you to keep more plugins up to date.

Plugin Link : Remove Category URL

Previous Difference between echo and print statements
Next Working with PHP Array - Indexed, Associative & Multi-Dimensional

About author

Rio
Rio 26 posts

Expert web developer working in PHP, Wordpress, Joomla, Magento, Javascript etc.

You might also like

WordPress 0 Comments

Boost your wordpress site using htaccess optimization methods

You can optmize your wordpress website using htaccess file techniques. Only enabling the Compression, Setting up Header Expiry, Setting Header Cache controls can do wonders with your page loading speed.

WordPress 1Comments

Remove Emoji Script & CSS from your wordpress source code.

When you install a new wordpress you will find a Emoji Script and CSS in your wordpress source code. Looking at the code you may feel it is unwanted and

WordPress 0 Comments

Remove & Clean not required items from WordPress Head Section.

If you check the source of your WordPress WebSite then you will see many attributes lines in your wordpress head section. Not all are required items and we always think

WordPress 0 Comments

Change admin username in wordpress for security

When you install new wordpress to create your website then the after setup the default admin username created is “admin” unless you specified any different username. This is the main

WordPress 0 Comments

Secure WordPress login with additional Authentication Layer

We can use WordPress for creating a different website having default or custom functionalities. WordPress can be use for creating Blog, CMS, Ecommerce, Community, Social Site, Download Management, Movies Hub

WordPress 0 Comments

Remove HTML Comments from wordpress website source

Once you are done creating your WordPress website, have a look at your HTML source code generated by the browser. You may notice many HTML comments added by your theme

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply

eighteen − two =