I'm trying to redirect all the traffic from .se to .com but for some reason the VirtualHost ignores the ServerName and ServerAlias that I define.
<VirtualHost *:80>
ServerName www.example.se
ServerAlias example.se
Redirect 301 / https://www.example.com/
</VirtualHost>
In the above example all the traffic will go through the VirtualHost redirect even though the tld is not .se
Am I missing something?