Easy Ways to Remove category from WordPress URL (2023)

Remove category from WordPress URL

Easy Ways to Remove category from WordPress URL (2023)

It’s possible that you don’t always want the category to display in the URL of your post. For example, your blog is based on multiple niches, and there are many categories. When someone visits your blog’s category, However, the URL will appear as www.yourdomain.com/category/your-category-name

But you do not want the category to be visible in your URL. In this article, we’ll take a look at how you can remove the category from WordPress URLs without affecting any functionality on your site. 

The article provides you four methods to Remove category from WordPress URL. You can check or skip to the area you’re interested in.

Remove Category From your URL in WordPress

Although WordPress comes with the defaults option for showing the URL of your category page, like this www.yourdomain.com/category/your-category-name, But you can also remove the category. This can be done from the WordPress dashboard. If you only need to delete a category from your URL, it’ll only take a few minutes.

Method 1: Remove categories from through WordPress settings 

Follow my instructions to remove the category from your URL.

  • Log in to your WordPress dashboard
  • Go to Setting >> Permalink 
  • Select Custom Structure and paste /%category%/%postname%/
  • Make a change to the Category base, put a dot(.) there.
  • Save the changes.
Remove category from WordPress URL from setting BoomDevs

You must ensure two things: that /%category%/%postname%/  is entered on the custom structure, and a dot is placed on the Category base. 

It will not work until you put a dot(.) on the Category base. By navigating through your category pages after saving the procedure, you can observe the changes. You’ll see that your URL doesn’t have any category text.

Method 2: Remove category from WordPress URL with the help of a plugin.

You can also do this with the help of plugins. You’ll need to install the Remove Category URL plugins to do so.

Screenshot 3 3 BoomDevs

You can use this plugin to remove the category from your URL. It’s also a simple plugin; you don’t need to do anything to remove the category from your URL. This plugin will remove the category from your URL automatically. It’s also compatible with WPML. So if you’re using WPML, you won’t have to worry about it.

Method 3: Remove category from WordPress URL with the help of Yoast SEO plugin.

Yoast SEO is a plugin that helps you optimize your blog posts. It will help you with keyword research, on-page optimization, and more! It’s an easy way to ensure that your blog post has everything it needs for high search engine rankings. You can also easily remove the category if you’re using the Yoest SEO plugin.

To remove the category from the URL Flow, my step :

  • Go to Yoast SEO
  • then go to Search Appearance 
  • Scroll down, on Remove the categories prefix choose the Remove option
  • Hit save
Remove category from WordPress URL yoast seo BoomDevs

You’ve completed all of your work with the Yoast SEO plugin. After you complete this step, your category text will be removed from the URL. There’s nothing else you need to do.

Method 4: Removing Category From Your URLs With .htaccess

Using .htaccess, you can remove categories from your URLs. It’s a manual process that can be completed manually. However, if you make a mistake, it may harm your website.

RewriteRule ^category/(.+)$ http://www.yourdomain.com/$1 [R=301,L]

All you have to do now is copy and paste the code into your .htaccess file. Replace yourdomain with your website domain. The category will no longer appear in your URL after that.

Wrapping Up

How to remove category from WordPress URL has already been discussed. We provide four methods. You are free to use any of it. However, if you’re using the plugin (method 2) to remove the category from the URL, we don’t recommend using it. I’m telling you this because the more plugins you use, the longer it will load. You can do this from the Yoast SEO plugin if you’re a Yoast SEO user. If you don’t want to use Yoast SEO, you can use the first method.

 You can read the following articles also :

Quickly Embed Spotify Playlist in WordPress (2021)

How to Make WordPress Site Private in 2021

Like this article? Spread the word
Shamiul Bishal

Head of Content & SEO Analyst

1 thought on “Easy Ways to Remove category from WordPress URL (2023)”

  1. Using Yoast or Rank Math for removing Base category creates problem for Elementor pages. Once you turn off Category Elementor page refer to default Hello template rather than the page you created for Blog, News, Albums , Video gallery or an individual Pages such as Contact, About etc..

    Reply

Leave a Comment

Success Message Icon

Thank You

It's great to hear from you. Thanks for taking
part. Your feedback is greatly appreciated.

Like our TOC? Make one.

A well-crafted table of contents that engage readers and search engines, with Rank Math’s compatibility, verified.