When redirecting all URLs to homepage, what exceptions do I need to make?

The better solution was to create a new theme with the basic files required for a theme, in the main PHP file just add a PHP redirect to the root domain. This ensures anything front end related goes to to the homepage, everything else stays the same.

For WooCommerce you have to put a redirect in a header.php file too.

tech