WordPress Development Asked by andresgl on January 4, 2022
I have several categories post:
General
News
Comedy
Competitions
Culture
Gaming
Food
etc
The posts url are in the following format:
www.mydomain.com/category-name/post-title
Example:
www.mydomain.com/food/how-to-make-paella
www.mydomain.com/gaming/game-of-theday
But I would like to hide from the URL the category name ‘general’ so for example.
instead of
www.mydomain.com/general/how-to-learn-spanish
have
www.mydomain.com/how-to-learn-spanish
I have tried some wiring a rewrite rule in the .htaccess but doesn’t work.
Any idea how can I do it?
Thanks!
Have you tried following Rewrite rule in your .htaccess ?
RewriteRule ^category/(.+)$ http://YOUR_SITE_NAME/$1 [R=301,L]
Answered by JItendra Rana on January 4, 2022
You can use post name in your permalinks setting. And for Category Base and Tag Base make it blank
Hope this will help
Answered by Aftab on January 4, 2022
5 Asked on October 30, 2021 by overcode
2 Asked on October 30, 2021 by hassan-ali
1 Asked on October 30, 2021
1 Asked on October 30, 2021 by mstdmstd
1 Asked on October 30, 2021 by ken-dunnington
javascript rest api third party applications woocommerce offtopic
0 Asked on October 30, 2021
1 Asked on October 30, 2021 by best-dev-tutorials
1 Asked on October 30, 2021 by danschdev
1 Asked on October 30, 2021 by akfordev
0 Asked on October 30, 2021 by user6218387
1 Asked on October 30, 2021 by moa-andersen
1 Asked on October 30, 2021 by prateek-pandey
1 Asked on October 30, 2021 by sajeergraphix
1 Asked on October 30, 2021 by anfuca
1 Asked on October 30, 2021
0 Asked on October 30, 2021 by wpdaniel
1 Asked on October 30, 2021 by user1551496
0 Asked on March 9, 2021 by nayan-chowdhury
bbpress genesis theme framework plugin development theme development
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP