skip to Main Content

Apache2 redirect https://www to https://non-www

I want to redirect https://www.mydom.com to http://mydom.com I have an mydom.conf into apache2/sites-available/ mydom.conf: #HTTP(www/non-www) -> HTTPS(non-www) <VirtualHost *:80> ServerName mydom.com ServerAlias www.mydom.com Redirect permanent / https://mydom.com/ </VirtualHost> #ACTIVATE HTTPS AND REVERSE PROXY -> test-1.0.0 <VirtualHost _default_:443> SSLEngine On SSLCertificateFile…

VIEW QUESTION
Back To Top
Search