# How to shorten URLs

**URL:** <https://discourse.gohugo.io/t/how-to-shorten-urls/17306>\
**Category:** support\
**Created:** [March 1, 2019, 9:37am UTC](https://discourse.gohugo.io/t/how-to-shorten-urls/17306 "2019-03-01T09:37:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zbych](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zbych](https://discourse.gohugo.io/u/Zbych)\
**Post date:** [March 1, 2019, 9:37am UTC](https://discourse.gohugo.io/t/how-to-shorten-urls/17306/1 "2019-03-01T09:37:38Z")

</div>

Hi all,

I’m new to Hugo and I have some problem. I read documentation but still I don’t know hot to do one thing.  
Assuming that I have directory called ‘posts’ (with posts inside) in my ‘content’ directory I don’t want have ‘post’ part in my url to the given article.  
For example instead of having

[http://someurlbase/posts/post1](http://someurlbase/posts/post1)

I want to have

[http://someurlbase/post1](http://someurlbase/post1)

Is it possible to achieve in hugo or not?

---

<div class="post-metadata">

**Author:** ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)\
**Post date:** [March 1, 2019, 10:27am UTC](https://discourse.gohugo.io/t/how-to-shorten-urls/17306/2 "2019-03-01T10:27:11Z")

</div>

You probably need to add this to your config.toml:

```auto
[permalinks]
posts = "/:slug/"

```

---

<div class="post-metadata">

**Author:** ![Zbych](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zbych](https://discourse.gohugo.io/u/Zbych)\
**Post date:** [March 1, 2019, 10:49am UTC](https://discourse.gohugo.io/t/how-to-shorten-urls/17306/3 "2019-03-01T10:49:19Z")

</div>

> [@Grob](#):
>
> [permalinks] posts = “/:slug/”

Yes, it works.  
Thanks a lot.
