# Nginx rewrite cat name

**URL:** https://meta.discourse.org/t/nginx-rewrite-cat-name/147632
**Category:** Self-hosting
**Created:** [April 11, 2020, 4:30pm UTC](https://meta.discourse.org/t/nginx-rewrite-cat-name/147632 "2020-04-11T16:30:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fausto\_Dassenno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fausto_dassenno/32/166480_2.png) [@Fausto\_Dassenno](https://meta.discourse.org/u/Fausto_Dassenno)
#### Post date: [April 11, 2020, 4:30pm UTC](https://meta.discourse.org/t/nginx-rewrite-cat-name/147632/1 "2020-04-11T16:30:19Z")

</div>

Hi all,

happy Easter!  
I am trying to rewrite this URL

`/international`  
to  
`/c/international-cafe/14`

without the URL in the address bar to change.

I tried using this:

```plaintext
location /international {
   return 301 https://discourse/c/international-cafe/14;
}

```

with the result of the browser changing the address.

What I am doing wrong?

Thx!

F.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 11, 2020, 4:34pm UTC](https://meta.discourse.org/t/nginx-rewrite-cat-name/147632/2 "2020-04-11T16:34:08Z")

</div>

Can routes be rewritten? I’m not sure that’s possible.
