Forum Moderators: phranque
We have this mydomain.net(ssl installed) hosted by godaddy and we also have this mydomain.com hosted from another server but currently pointing to mydomain.net. I have this .htaccess setup below so that whatever visitors type in the url either mydomain.net or mydomain.com, mydomain.com will always appear on the url but its content is from mydomain.net. Now we currently installed ssl on mydomain.net so that .../store folder will be secured.
htaccess:
----------------
RewriteEngine On
Options -MultiViews
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_URI} !/store.*
RewriteRule !\.(js¦ico¦gif¦jpg¦png¦css¦xml¦swf¦zip¦doc¦pdf¦html¦taf)$ index.php
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com$ [NC]
RewriteRule ^(.*)$ [mydomain.com...] [R=301,L]
----------------
Our problem is if we redirect visitors to [mydomain.com...] when they click on the store link they get a warning that says on IE:
"There is a problem with this website's security certificate.
The security certificate presented by this website was issued for a different website's address.
Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server."
This might scare them away. How can i revised my .htaccess in order for this warning to be removed? is this possible?
Thanks in advance and appreciate much any help.
Regards,
diko
Thanks,
You can't fool SSL with a redirect. If you want to use or redirect from mydomain.com using SSL, purchase a certificate for it.
Or you could remove the redirect on the non-SSL site, and provide visitors with a link to your SSL site saying "Visit our secure site!"
Jim
Right now I cant use/buy ssl for .com site since there's no file on that server(pointing to .net's ip) and my boss wont transfer the hosting of it to where the .net is hosted.
Regards,