I would like to redirect www and non-www with a subdomain to non-www HTTPS.
I think this should clarify.
<VirtualHost *:80>
DocumentRoot "C:/www/eshop"
ServerName shop.example.com
ServerAlias www.shop.example.com
# shop.example.com should redirect to https://shop.example.com
# www.shop.example.com should redirect to https://shop.example.com
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "C:/www/eshop"
ServerName shop.example.com
ServerAlias www.shop.example.com
# I would like to redirect www and non-www to https://shop.example.com
# https://shop.example.com should redirect to https://shop.example.com
# https://www.shop.example.com should redirect to https://shop.example.com
<Directory "C:/www/eshop">
# some code will go here
</Directory>
</VirtualHost>