I have never done this before
This is my current .htaccess file, I want it to tell the browser to switch to HTTPS.
AddHandler php5-script .php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?r=$1 [L,QSA]
The website JacoInc.com has a SSL however Chrome gives this message:
The identity of this website has not been verified.
• Server's certificate does not match the URL.
I don’t know why this comes up. Is it because of MediaTemple or something that I’m doing?
This is not a programming question (not for StackOverflow), and the clue is in the error message.
The certificate for the site you’re linking to has the following Subject Alternative Names:
Therefore, it’s only valid for these names (see RFC 6125 and RFC 2818):
This has nothing to do with
.htaccess.As a side note, redirections via rewrite rules from
http://tohttps://only happen after thehttp://request has been made. Make sure you stay onhttps://once you’re on it, don’t rely on this for all your links to be turned tohttps://automatically.