stop using “category” in category permalinks
-
I see that wordpress defaults to using category as the base for category archives (www.domain.com/category/category-name/sub-category-name) and if you enter anything into the Category-Base field it will use this instead. I would just likst to use a format of https://www.domain.com/category-name/sub-category-name. It seems like if there’s nothing there, it shouldn’t use anything – and just have %category% there as a default. To have ‘category’ in my url seems reduntant and needlessly long.
Is there a hack or a modification I can make to remove this? I’m assuming there is someting that can be done in the htaccess – but I am notorious for screwing up mod rewrite? ?? I wanted to ask first.
Could I just remove all of the ‘/category'</em?>s out of this part?
RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /wordpress/index.php?category_name=$1&feed=$2 [QSA,L]
RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /wordpress/index.php?category_name=$1&paged=$2 [QSA,L]
RewriteRule ^category/(.+)/?$ /wordpress/index.php?category_name=$1 [QSA,L]
But that’s not going to stop the internal links from being messed up. ??
- The topic ‘stop using “category” in category permalinks’ is closed to new replies.