Forum Moderators: phranque

Message Too Old, No Replies

Trying to redirect from non SSL certificated sites to SSL certificated

         

tirengarfio

12:47 pm on Mar 4, 2011 (gmt 0)

10+ Year Member





Hi,

I bought a SSL certificate for the domain [mypage.com....] I have other domains like [mypage.fr,...] [mypage.es...For...] those I didn't buy a SSL certificate.

When I go to [mypage.com...] the page is showed directly OK, but if I go to [mypage.fr,...] the browser shows the typical message "This Connection is Untrusted"..

When the user enter to [mypage.fr...] I would like to redirect the user to [mypage.com...] in order to not showing the message "This connection is untrusted..".

For that, I have written this in my .htaccess:

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !^www.mypage.com [NC]
RewriteRule (.*)$ https://www.mypage.com [R=301,L]


but when I go to [mypage.fr...] the browser still shows the message "This connection is untrusted...".

So what should I do to redirect my sites avoiding this message?

Regards

Javi

phranque

12:05 am on Mar 5, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i would try requesting the page with the Live HTTP Headers Add-on for Firefox:
http://addons.mozilla.org/en-us/firefox/addon/live-http-headers/ [addons.mozilla.org]

this should show if any of the other requests on the page are combining secure protocol with a non-secure domain.
e.g. [example.fr...]