# Is it possible to customize the categories/tages url?

**URL:** <https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704>\
**Category:** support\
**Created:** [December 25, 2017, 2:22pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704 "2017-12-25T14:22:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianian](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ianian/32/4827_2.png) [@ianian](https://discourse.gohugo.io/u/ianian)\
**Post date:** [December 25, 2017, 2:22pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704/1 "2017-12-25T14:22:13Z")

</div>

For example, I have some posts with the same tags or categories like:

```
---
title: "XXXX"
categories: 
    - cat_old
tags:
    - tag_old
---

```

The this post will be listed in [http://baseurl/categories/cat\_old](http://baseurl/categories/cat_old) and [http://baseurl/tags/tag\_old](http://baseurl/tags/tag_old).

My questions is: Is it possible to customize the url like: [http://baseurl/categories/cat\_new](http://baseurl/categories/cat_new) and [http://baseurl/tags/tag\_new/](http://baseurl/tags/tag_new/)

I know Hexo has a similiar function call categories mapping.  
[https://blog.bitbadger.solutions/2017/mapping-categories-and-tags-with-hexo.html](https://blog.bitbadger.solutions/2017/mapping-categories-and-tags-with-hexo.html)  
Dose Hugo has the same function?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![brunoamaral](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/brunoamaral/32/21144_2.png) [@brunoamaral](https://discourse.gohugo.io/u/brunoamaral)\
**Post date:** [December 25, 2017, 2:46pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704/2 "2017-12-25T14:46:24Z")

</div>

looks to me you are trying to rename categories and tags, is that it?

I would run a find-and-replace on them and set up server redirects based on the old url.

---

<div class="post-metadata">

**Author:** ![maiki](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/maiki/32/16384_2.png) [@maiki](https://discourse.gohugo.io/u/maiki)\
**Post date:** [December 25, 2017, 6:39pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704/3 "2017-12-25T18:39:52Z")

</div>

> [@ianian](#):
>
> I know Hexo has a similiar function call categories mapping.
> 
> Dose Hugo has the same function?

Nope, Hugo doesn’t have that feature. 🙂

---

<div class="post-metadata">

**Author:** ![ianian](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ianian/32/4827_2.png) [@ianian](https://discourse.gohugo.io/u/ianian)\
**Post date:** [December 26, 2017, 12:38am UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704/4 "2017-12-26T00:38:34Z")

</div>

Actually, it is because I want to make the tags different from the url. My blog is Chinese. But the virtual host I used did not support Chinese url. So if a tag is Chinese. The tag url will not function correctly.

---

<div class="post-metadata">

**Author:** ![ianian](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ianian/32/4827_2.png) [@ianian](https://discourse.gohugo.io/u/ianian)\
**Post date:** [December 26, 2017, 12:39am UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704/5 "2017-12-26T00:39:05Z")

</div>

Thank you for your information. It seems I have to switch to Hexo.

---

<div class="post-metadata">

**Author:** ![jonathanulco](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jonathanulco/32/3037_2.png) [@jonathanulco](https://discourse.gohugo.io/u/jonathanulco)\
**Post date:** [December 29, 2017, 7:54pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-customize-the-categories-tages-url/9704/6 "2017-12-29T19:54:56Z")

</div>

If you don’t have a lot of different categories and tags, you can overload in `/content` like

```auto
/content
  /replacenamecategory/ 
    _index. md
  /relacenamecategory2/
    _index. md 

```

and call the taxonomyList in your directory layout /newtaxonomyname/list.html  
and don’t forget to call the `type` in the frontmatter of \_index. md
