I have to redirect my website from https://www.example.com/ to https://website.com/.
https://www.example.com/
https://website.com/
SSL is properly installed on my server.>
Did you Try this ?
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*) RewriteRule ^.*$ https://%1/$1 [R=301,L]
Generic htaccess redirect www to non-www