By frank990212
So I am using the following
<VirtualHost :80> RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.) https://%{HTTP_HOST}/$1 [NC,R,L] </VirtualHost> <VirtualHost *:443> etc…
and it does not redirect all traffic to the appropriate named version, it goes to SSL but not the domain setup. I am using only domain.com and not www.domain.com so my SSL cert is registered to mydomain.com and not the www version, and it does redirect to the SSL version but not to just the https://domain.com version. open to suggestions please?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Just to add, I have tried the following and it seems to work on IE. but not Chrome. <VirtualHost :80> RewriteEngine on RewriteCond %{HTTPHOST} !^domain.com$ [NC] ReWriteCond %{SERVERPORT} !^443$ RewriteRule ^/(.) https://%{HTTP_HOST}/$1 [NC,R,L] </VirtualHost>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.