Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

828 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