Permalinks 如何从 vanilla 重定向到 discourse?

how does permalinks work from vanilla to discourse redirection?