It is not normally possible to directly and transparently connect one UART to another. You will have to provide appropriate software to transfer data from one UART to another.
If both UARTs run at the same baud rate this may be relatively simple - you can read the Rx register from one UART and write the value to the TX register of the other (and vice-versa for bi-directional comms). If you implement this using UART interrupt handlers, it can be more-or less transparent to other code running on the MCU. For this to work without buffering, you have to be certain you can transfer the data from one UART to the other before a hardware overrun can occur - your hardware may or may not have a FIFO, so hardware buffering may be as little as the Rx register and the input shift register (two bytes). If there are other software operations occurring that may interfere with this operation, you may still need buffering.
If the baud-rates differ, you will need to provide buffering at least to the slower of the two ports, and you will not be able to stream data from the fast port to the slow one - there must be pauses in the data stream to prevent buffer exhaustion.
On some devices it may be possible to reduce the software overhead significantly by using DMA transfers (unlikely on your part I imagine).
However you do it you will still need software to enable and configure the UARTs - there is no hardware-only or simple "pin-pin" pass-through solution.