Redirect from Discourse to Outside

Hello

Old URL

https://discourse.example.com/t/tiles-image-gallery/81950

HTTP Status Code: 301 :arrow_down:

New URL

https://example.com/tiles-image-gallery/

HTTP Status: 200

How can I setup redirect like this?

Thanks