Title: Taxonomy Issue
Last modified: September 1, 2016

---

# Taxonomy Issue

 *  Resolved [diotla](https://wordpress.org/support/users/diotla/)
 * (@diotla)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/taxonomy-issue-3/)
 * Hi,
 * I’m creating a news site and i’ve a problem with the URLs and i don’t know how
   to fixed it.
 * Basically, the site have many categories and subcategories before the post, for
   example: “Football” and “New york”. So if a article is categorized in “Football”
   category and “New York” subcategory” i want the URL be like “.com/football/new-
   york/postname”. So i went to settings and permanent links and put in the personalized
   structure the following: “/%category%/%subcategory%/%postname%/” and it work 
   until the subcategory pages. When i tried to read a post the URL generated was“/
   football/%subcategory%/postname” (400 – bad request).
 * I tried by removing “/%subcategory%” in Permanent Links but that pages show me
   a “404 Page Not Found” (for example, “New york” page)
 * I don’t know if i’m missing something, but i’ll be glad if anyone could help 
   me.
 * Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [ThemeSumo](https://wordpress.org/support/users/themesumo/)
 * (@themesumo)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/taxonomy-issue-3/#post-7536832)
 * Use a permalink structure of:
 * `/%category%/%postname%/`
 * When you add a new post, only add it to the sub-category, the resulting URL of
   that post will show both sub-category and it’s parent category in the URL.
 * The post will also be listed under the parent category archive too.
 *  Thread Starter [diotla](https://wordpress.org/support/users/diotla/)
 * (@diotla)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/taxonomy-issue-3/#post-7536851)
 * Hi Themesumo,
 * I’ve already did the change that you proposed, but still can’t see the sub-category
   archive (Page Not Found)
 * For example, my category is “Football”, the subcategory is “USA” and then is 
   the article. My idea is to have the “Football” section (archive) with all articles
   related and also the “USA” section (archive).
 * I tried with “/%category%/%subcategory%/%postname%/” but i had problems with 
   the URL articles. I also tried with /%category%/%postname%/ but i had problems
   with the subcategory archive page.
 * Any idea what i’m doing wrong?
 * Thanks for the feedback!
 *  [cedcommerce](https://wordpress.org/support/users/cedcommerce/)
 * (@cedcommerce)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/taxonomy-issue-3/#post-7536852)
 * Hey diotla,
 * You just need to make the permalink structure link <b>/%category%/%postname%/
   </b> as earlier ThemeSumo said, and assign the post only subcategory, because
   a post having multiple category assigned, only one can show up in the permalink.
   So just need to assign the subcategory only to a post and your parent categories
   will also be show up in the permalink.
 * But if this is not working for you as you said, just save once you permalink 
   and see if it’s all correct. If it’s still not working then just see at the Settings
   > Permalinks page at the bottom and you’ll find something like:
 * “If your .htaccess file were writable, we could do this automatically, but it
   isn’t so these are the mod_rewrite rules you should have in your .htaccess file.
   Click in the field and press CTRL + a to select all.”
    Just copy the code below
   these lines and paste in your .htaccess file and see now. May be due to some 
   reason .htaccess file will not be overwritten.
 * Hope this will help you.
 *  Thread Starter [diotla](https://wordpress.org/support/users/diotla/)
 * (@diotla)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-issue-3/#post-7536870)
 * Hi Cedcommerce,
 * Thank you! I’ve already solved this problem.
 * Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Taxonomy Issue’ is closed to new replies.

## Tags

 * [400 Bad Request](https://wordpress.org/support/topic-tag/400-bad-request/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [diotla](https://wordpress.org/support/users/diotla/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/taxonomy-issue-3/#post-7536870)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
