I've been looking everywhere for a solution to be able to force https ://www in front of all my URL's using virtual host. This is what I currently have in my 000-default.conf file:
<VirtualHost *:80> ServerName www.domain.com Redirect / https://www.domain.com/ </VirtualHost >
That means all www. would redirect to https ://www.
Now I'm missing the code to redirect all/any other forms of URL to https://www. using the same concept (not RewriteEngine because Apache suggests not to use RewriteEngine on simple redirects).
- http ://domain.com
- http ://www.domain.com
- https ://domain.com
they would all go to => https://www.domain.com
If someone can point me in the right direction, that would be great!