This is where solid-state relays (SSRs) are worth considering ... For a detailed treatment of SSR safety, check out this document from Omron (PDF warning). It also offers some useful design ...