# I still don't get Aliasses

**URL:** https://discourse.gohugo.io/t/i-still-dont-get-aliasses/18522
**Category:** support
**Created:** [May 6, 2019, 3:55am UTC](https://discourse.gohugo.io/t/i-still-dont-get-aliasses/18522 "2019-05-06T03:55:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Javier\_Cabrera](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@Javier\_Cabrera](https://discourse.gohugo.io/u/Javier_Cabrera)
#### Post date: [May 6, 2019, 3:55am UTC](https://discourse.gohugo.io/t/i-still-dont-get-aliasses/18522/1 "2019-05-06T03:55:30Z")

</div>

Really. It’s been like 6 months or 8 I’m using HUGO and I could never make those work.

This is what I do:

```auto
# /content/some-page/hello.md
----
Title: "Some Page Hello"
Weight: "1"
aliases: "/contact-here/"
----

```

```auto
# /content/contact-here/index.md
---
Title: "Contact Here"
Weight: "1"
---

```

What I assume is: when I get to `some-page/hello/` I will be redirected to `contact-here`, but it ain’t happening.

Halp

---

<div class="post-metadata">

### Author: ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)
#### Post date: [May 6, 2019, 4:08am UTC](https://discourse.gohugo.io/t/i-still-dont-get-aliasses/18522/2 "2019-05-06T04:08:28Z")

</div>

[How Hugo Aliases Work](https://gohugo.io/content-management/urls/#how-hugo-aliases-work) Docs.

Given

```auto
# /content/some-page/hello.md
----
Title: "Some Page Hello"
Weight: "1"
aliases: "/contact-here/"
----

```

If you navigate to `/contact-here/` you will get redirected to `/some-page/hello/`.

`public/contact-here/` will contain:

```auto
<!DOCTYPE html>
<html>

  <head>
    <title>https://example.com/some-page/hello/</title>
    <link rel="canonical" href="https://example.com/some-page/hello/" />
    <meta name="robots" content="noindex">
    <meta charset="utf-8" />
    <meta http-equiv="refresh" content="0; url=https://example.com/some-page/hello/" />
  </head>

</html>

```

---

<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: [May 6, 2019, 4:19am UTC](https://discourse.gohugo.io/t/i-still-dont-get-aliasses/18522/3 "2019-05-06T04:19:36Z")

</div>

@pointyfar lays it out, so here’s a way to _think_ about it: if I have a page that exists, and a bunch of URLs I want to redirect to it, I’d keep all those URLs in the one actual piece of content. Otherwise I’m just filling out empty pages to create redirects.

---

<div class="post-metadata">

### Author: ![RickCogley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rickcogley/32/10269_2.png) [@RickCogley](https://discourse.gohugo.io/u/RickCogley)
#### Post date: [May 6, 2019, 10:23pm UTC](https://discourse.gohugo.io/t/i-still-dont-get-aliasses/18522/4 "2019-05-06T22:23:04Z")

</div>

You’re simply thinking of it backwards. Set an alias as another path into your content, the main URL of which is set in the normal Hugo-esque way via the Title or, via slug in frontmatter for example. If you change the url multiple times, you can put all the old urls in the aliases list, so that you ensure visitors will still find your content, even if they have bookmarked the old url.
