Solved

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

Posted on 2010-11-29
3
442 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

920 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

15 Experts available now in Live!

Get 1:1 Help Now