I was attempting to work out how to eliminate/classification/from my classification URLs and I just couldn’t appear to eliminate it. For instance jonnyjordan.com/classification/blog I simply needed to be jonnyjordan.com/blog, yet I discovered a speedy stunt to accomplish this.
To dispose of class you set your permalinks to/%category%/%postname%/and afterward set the Category Base to period/speck.
*If you leave the class base clear it will show the wordpress default category.*
- Go to Setting > Permalinks
- Select Custom Structure
- Add/%category%/%postname%/after your area
- Change Category Base to period/spot.
Eliminating Category From Your URLs With Yoast’s SEO Plugin
Another speedy method to eliminate class from your URLs is to utilize the Yoast SEO module. Yoast accompanies a convenient setting to eliminate the class base for you.
- Go to Yoast SEO
- Select progressed
- Snap on the tab permalinks at the top
- Check Strip the classification base (generally/classification/) from the classification URL.
Eliminating Category From Your URLs With .htaccess
To eliminate the class base physically in the .htaccess document simply add this line of code.
RewriteRule ^category/(.+)$ http://www.site.com/$1 [R=301,L]
Eliminating The Category Base with the Remove Category URL Plugin
This module likewise eliminates the class base and is by all accounts exceptionally mainstream also. I would suggest this strategy the least in light of the fact that an excessive number of modules will back your site off and expect you to stay up with the latest. https://wordpress.org/modules/eliminate classification url/
Eliminating The Category Base with the Remove Category URL Plugin
This module likewise eliminates the classification base and is by all accounts mainstream also. I would suggest this strategy the least in light of the fact that an excessive number of modules will back your site off and expect you to stay up with the latest. https://wordpress.org/modules/eliminate classification url/
End
Each of the four techniques above will work for eliminating the class slug from your URLs. Despite the fact that I would suggest picking the technique that will utilize less code for your situation.