Using .htaccess, I need to redirect all requests from
https://www.domain
to
https://domain
Assuming you have mod_rewrite enabled in your Apache configuration, you will need this in your .htaccess file.
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R,L]