# Redirect URL with Nginx in Digital Ocean

**URL:** <https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297>\
**Category:** Self-hosting\
**Created:** [August 6, 2022, 9:10am UTC](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297 "2022-08-06T09:10:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Alshain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alshain/32/268446_2.png) [@Alshain](https://meta.discourse.org/u/Alshain)\
**Post date:** [August 6, 2022, 3:02pm UTC](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297/5 "2022-08-06T15:02:50Z")

</div>

I am making changes in app.yml but how exactly should I do the redirect? ☹

I would really appreciate if you could help. There are 150,000+ questions, I don’t want to try to go through them all ☹

I have never been redirected in this way before, and according to my research on the internet, I couldn’t find much.

When I write the redirect with rewrite, what I want is:

[https://testdiscourse.com/d/123123-asda-asdasd-adas](https://testdiscourse.com/d/123123-asda-asdasd-adas)

[https://testdiscourse.com/t/asda-asdasd-adas](https://testdiscourse.com/t/asda-asdasd-adas)

I don’t even need 123123, how can I do that?

---

_[View the full topic](https://meta.discourse.org/t/redirect-url-with-nginx-in-digital-ocean/235297)._
