Advertise Your Business With Us At Cheap Price, Call Or WhatsApp +2349021020979

a remove wordpress with urls dot category from

Hi Guest, kindly Login Or Register To Unlock More Advanced Features In Wapforum

Remove Category From Wordpress Urls With A Dot
(2.4k )
Remove Category from WordPress URLs with a Dot
1. Go to Settings -> Permalinks.

2. Select Custom Structure and put /{136ce94cc7fec1f5657bab0b4d73ed308318c1024f899c463e79e42d4b375fbf}category{136ce94cc7fec1f5657bab0b4d73ed308318c1024f899c463e79e42d4b375fbf}/{136ce94cc7fec1f5657bab0b4d73ed308318c1024f899c463e79e42d4b375fbf}postname{136ce94cc7fec1f5657bab0b4d73ed308318c1024f899c463e79e42d4b375fbf}/ there.

3. Assign a dot to Category base field and save the change.
[Image: remove-category-slug-using-dot.png][img=360x0][/img]
Note that providing dot to Category base in settings is the must. As leaving it blank will use the default value. Visit a post after saving settings and check the URL, it won’t have the category base now. While this trick currently works, there’s no assurance that it will work in the future as well.
Remove Category From Your URLs with .htaccess

PHP Code:
RewriteRule ^category/(.+)$$1 [R=301,L]

You can also add this code to your .htaccess file through FTP rather than using a dot. Add the code before the closing tag in the file and it will remove the category slug from WordPress permalink.

Are You using Yoast SEO Plugin?

The current version of SEO by Yoast plugin has discontinued the option of category removal from URLs. Past version had the option in the Advanced menu of plugin settings. The websites who’re using Yoast for a long time, still have their URLs without the category base.
If you’ve installed Yoast plugin on your fresh WordPress website, check the post URLs as well. While we’re not sure, the feature might be still there and working silently. Else there are other plugins as well to remove category slug.

Removing Category from Slug using a Plugin.
The plugin Remove Category URL seems quite popular and offers additional advantages. You can try the plugin if your website is older than 6 months. It will redirect the old category permalinks to the new ones, which is better for SEO. Also, you don’t need to configure anything or modify a file. Get the WordPress official plugin URL here.
FV Top Level Categories is one another plugin to remove category base from WordPress Permalinks.
Writing a function is also a way for the functionality but it makes the site slower. At last, all four ways to remove the category slug from URLs are there. Which one do you prefer or any feedback/question? Let us know it the comment section below and try resolving


Share This Post To The World

Users browsing this thread: 1 Guest(s)
Goto First Post In This Thread

Possibly Related Threads...
Thread Author Replies Views Last Post
  MUST READ: Naijaloaded Wordpress Theme Savage 3 5.5k 23-07-2021, 12:36 PM
Last Post: sharmaayushb
  HELP: I Need Partners (authors) To Post On My Wordpress Blog iJude 0 1.2k 22-08-2020, 02:50 AM
Last Post: iJude
  COMING SOON: 043coded 2019 Wordpress Theme Edition Joyz 2 5.2k 04-05-2020, 10:29 AM
Last Post: litesloaded