Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Must Read 4 Ways To Remove Category from WordPress URLs
#1
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]https://themerella.com/wp-content/uploads/2018/02/remove-category-slug-using-dot.png[/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/(.+)$ http://www.yourwebsite.com/$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
To Purchase Credit Click here , For how to make money on Sologet forum Click here 

HIRE ME FOR WEBSITE DESIGNING US THE PM BUTTON TO SEND ME MESSAGE

There is love in sharing
#2
Tongue
To Purchase Credit Click here , For how to make money on Sologet forum Click here 

HIRE ME FOR WEBSITE DESIGNING US THE PM BUTTON TO SEND ME MESSAGE

There is love in sharing
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  HOW TO Set mp3 tagger for wordpress djdozic 2 350 02-25-2019, 07:26 PM
Last Post: Kingsolomon
  HOW TO How to Fix the 502 Bad Gateway Error in WordPress khodex 1 164 01-09-2019, 07:48 AM
Last Post: Kingsolomon
  How To Show WordPress Post View Count Without A Plugin Kingsolomon 1 284 12-01-2018, 04:27 PM
Last Post: Kingsolomon
  TIPS How to login and manual installation of wordpress aceboy 1 258 11-25-2018, 07:42 PM
Last Post: pola
  How make a wordpress theme responsive Kingsolomon 2 359 11-25-2018, 07:37 PM
Last Post: pola

Forum Jump:


Users browsing this thread:
1 Guest(s)

4 Ways To Remove Category from WordPress URLs00