I am having trouble redirecting my users to the https version of my site.
I have been through many forums and not found any answer that works.
I am including the following php at the top of every page:
<?php
if($_SERVER['SERVER_PORT']!=80)
{
$redirect= "https://www.pringlepoker.com".$_SERVER['PHP_SELF'];
header("Location: ".$redirect);
exit();
}
?>
but all I get is the http version of the site
I have also tried using a .htaccess file to redirect using this code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.pringlepoker.com/$1 [R,L]
but I just get a redirect loop error
and this is the solution every forum has and people are responding saying it works,
but it doesn't work for me
I contacted support for my host and they said:
Dear John,
Thank you for contacting 123-reg on the 26th January 2012.
I can confirm that your SSL was not pointing to the correct virtual IP address, I have corrected this for you now. Your SSL should be working within the next 24 hours time. I apologise for any inconvenience this may have caused you.
If we can be of any further help with regard to this or any other matter, please do not hesitate to contact us.
Kind regards,
Darshan
That was 4 days ago, I sent them another message saying it's still not working and they haven't responded.
I believe it's something that I need to do but I can't find the answer.
Can any of you help me?
Thanks in advance,
John

New Topic/Question
Reply



MultiQuote






|