# Redirecionamentos no Discourse do XenForo

**URL:** <https://meta.discourse.org/t/redirects-in-discourse-from-xenforo/305470>\
**Category:** Product Support\
**Created:** [Abril 25, 2024, 7:41pm UTC](https://meta.discourse.org/t/redirects-in-discourse-from-xenforo/305470 "2024-04-25T19:41:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Fajfi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fajfi/32/381507_2.png) [@Fajfi](https://meta.discourse.org/u/Fajfi)\
**Post date:** [Abril 27, 2024, 6:12pm UTC](https://meta.discourse.org/t/redirects-in-discourse-from-xenforo/305470/4 "2024-04-27T18:12:46Z")

</div>

Obrigado!

Aqui está a regex para normalizações de permalink para o meu caso no XenForo:

[https://example.com/threads/thread-name.1234/](https://example.com/threads/thread-name.1234/)  
`/(threads)\\/(.*?)([0-9].*)?$/threads/\\3`

[https://example.com/forums/category.1234/](https://example.com/forums/category.1234/)  
`/(forums)\\/(.*?)([0-9].*)?$/forums/\\3`

* * *

Quando houver números em thread-name ou category, use esta:

`/(threads)\\/(.*?\\.)([0-9].*)?$/threads/\\3`

`/(forums)\\/(.*?\\.)([0-9].*)?$/forums/\\3`

---

_[View the full topic](https://meta.discourse.org/t/redirects-in-discourse-from-xenforo/305470)._
