dusty flarum-bbcode.forum.quote.wrotea (above) will work after something is done about the round corners formed by the router bit. Either chisel these out to make them square corners or round over the corners on the mating piece.
I would prefer the bandsaw solution.
Hi Dusty! Even with a bandsaw, I would have to trim the cuts with a hand chisel to make them as perfect as the photo above.
BTW There would be no round corners if the board is vertical to the router bit. You must be thinking of having the board lying on it's face.
To make these cuts with a router, I would use a vertical push fence feeding it along a router table fence. One could also use an overarm router in horizontal mode and lift the table up so the workpiece goes past the spinning straight router bit.
Must confess the smoothest edges would be made by ripping off smaller widths from the outside of a wider (and longer) board - trimming the center part to proper length and gluing back the cutoffs. The cutoffs can now be trimmed to the proper length.