?
Solved

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

Posted on 2010-11-29
3
Medium Priority
?
455 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
Sam Cohen earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

771 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