Title: category urls
Last modified: August 19, 2016

---

# category urls

 *  [mildlyhotpeppers](https://wordpress.org/support/users/mildlyhotpeppers/)
 * (@mildlyhotpeppers)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/category-urls/)
 * Is there any way for WordPress template tags (like `<?php the_category(); ?>`
   to generate a link to “ROOTDOMAIN/NAMEOFCATEGORY” instead of “ROOTDOMAIN/category/
   NAMEOFCATEGORY”? For example, if you take a look at one of my posts, [http://www.mildlyhotpeppers.com/comics/posts/comics-now-every-weekday/](http://www.mildlyhotpeppers.com/comics/posts/comics-now-every-weekday/),
   there’s a “Back to Posts” link at the top. If you click it, you end up at [http://www.mildlyhotpeppers.com/comics/category/posts](http://www.mildlyhotpeppers.com/comics/category/posts)
   rather than [http://www.mildlyhotpeppers.com/comics/posts](http://www.mildlyhotpeppers.com/comics/posts).(
   The root of this WordPress installation is in a comics folder, hence there’s 
   a /comics/ between the domain and the category.) On my site, “category/posts”
   generates the same thing as just “posts”, and I don’t want visitors visiting 
   the one with “category” in front.
 * Also, when I use the posts_nav_link at the bottom of the page found at [http://www.mildlyhotpeppers.com/comics/posts](http://www.mildlyhotpeppers.com/comics/posts),
   the “Previous Entries” link points to [http://www.mildlyhotpeppers.com/comics/posts/page/2/](http://www.mildlyhotpeppers.com/comics/posts/page/2/),
   which results in a 404. I noted that [http://www.mildlyhotpeppers.com/comics/category/posts/page/2/](http://www.mildlyhotpeppers.com/comics/category/posts/page/2/),
   however, works. Would anyone know why this happens and how I can fix it?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/category-urls/#post-677428)
 * You cannot “fix” it because it is not a bug.
    WP needs that /category/ base to
   work properly – just as you discovered. However, you can replace the word “category”
   with whatever you like in admin . Options > Permalinks.
 *  Thread Starter [mildlyhotpeppers](https://wordpress.org/support/users/mildlyhotpeppers/)
 * (@mildlyhotpeppers)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/category-urls/#post-677430)
 * Aw…
 * Thanks.

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

The topic ‘category urls’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [posts_nav_link](https://wordpress.org/support/topic-tag/posts_nav_link/)
 * [the_category](https://wordpress.org/support/topic-tag/the_category/)
 * [urls](https://wordpress.org/support/topic-tag/urls/)

 * 2 replies
 * 2 participants
 * Last reply from: [mildlyhotpeppers](https://wordpress.org/support/users/mildlyhotpeppers/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/category-urls/#post-677430)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
