I went thru that with the last router table I made. Major pain reaching under, so attached a power strip outside, whic worked, but was not quite what I wanted. Then ran across an inexpensive foot switch from Harbor Freight.
Just what I wanted. I've got back problems, so sit to rout, which works fine, and just put my foot on the switch when I want power, take it off when I don't. And, if something happens and I jerk back, it takes my foot off the switch sort of automatically, so I don't have to think about turning the router off, it's al ready off.
Probably too expensive for you to order from them, but I'm pretty sure you can find something similar.
I use it on my other power tools also. A bit irritating when I forget, move my foot, and lose power to my tool, but it more than makes up for it when there's something that startles me and I move back, automatic shutoff. That's the way I do it.