Solved

Wordpress: change categories to sub-cats without changing url structure?

Posted on 2010-11-29
3
437 Views
Last Modified: 2012-05-10
I have categories with urls like:

http://www.mysite.com/category/world

I want to change some of the top level categories into sub-categories... but keep the urls the same. So even if 'world' is changed to a subdir, the url stays the same for legacy reasons.

If I just move it to a sub-dir in the admin, it automatically changes the url to http://www.mysite.com/category/topCatName/world

My posts do not use category names in the url, they are just set through permalinks to show mysite.com/postTitle

Is there a way to make these subdirs without the url changing?

------added-----
opps, meant this to be in the wordpress section only, php jumped in there by accident somehow.
Thanks,  Chris
0
Comment
Question by:St_Aug_Beach_Bum
3 Comments
 
LVL 8

Accepted Solution

by:
Sam Cohen earned 500 total points
ID: 34237349
0
 
LVL 14

Expert Comment

by:Dzynit
ID: 34240013
You'll have to take all4artz advice on the htaccess rewrite.

Wordpress will force that sub-cat name simply to avoid duplicate posts. This article might make it a little quicker for you though. If you're like me, I'm terrible with htaccess code :)

http://www.wprecipes.com/how-to-remove-category-from-your-wordpress-url
0
 

Author Closing Comment

by:St_Aug_Beach_Bum
ID: 34240988
Thank you both!  

Htaccess it is :)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now