Solved

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

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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 …
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

738 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