I have a WordPress install where all the links are https://example.com
. So, users that try to access the site via https://www.example.com
will see the site, but none of the images and resources will load.
How do I force all users to be redirected to the same domain? I'd rather have everyone at https://example.com
.
Is this something I can do through the domain's DNS settings, in the host/server, or in WordPress itself?
Update: I am using Apache.
Update 2:
All the conditions I am trying to catch:
User types,
http://example.com
http://www.example.com
https://example.com
https://www.example.com
example.com
www.example.com
As I understand, conditions 5 and 6 should be the same as 1 and 2. But I put it there, just in case. Condition 3 is where I want users to go, so that should work by default.
1-6 should redirect to -> https://example.com