If the sub is going in the cabinet, all its driver(s) and port(s) have to face forward.
Also, make sure you put the subwoofer in a cabinet that is also a good subwoofer location. A subwoofer in a cabinet in the middle of the front wall is not such a good idea.
SheepStar