Hi,
i allready read the sticky Post "setting up with ssl". the dtregister plugin is installed and works fine. But in addition i have rsform with payment details. It should also use port443. When i enable the dtregister plugin it works for dtregister, but forces the rsform to http. I tried to convert the Virtumart code from the sticky port to rsform. Disabling the ssl plugin when doing so, it results in the error, "..your site contain secure and unsecure content..." when calling the dtregister component. rsform is than fine. Where am i wrong.
<?php
// toggle in and out of SSL
// check the URL for modules that need SSL
if ((strpos($_SERVER["REQUEST_URI"], "com_rsform") > 0) || (strpos($_SERVER["REQUEST_URI"], "com_dtregister") > 0)
|| (strpos($_SERVER["REQUEST_URI"], "com_dtdonate") > 0 )|| $_REQUEST=='com_dtdonate' ||
$_REQUEST=='com_dtregister' || $_REQUEST=='com_rsform')
{
// only rewrite the URL once, if you are not in https: mode
if ($_SERVER == 80)
{
if($_SERVER=='POST'){
}else{
header( 'Location: [url=https://']https://'[/url] . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
}
}
}
// check to see if https: is not required
if ((strpos($_SERVER["REQUEST_URI"], "com_rsform") === false) && (strpos($_SERVER["REQUEST_URI"], "com_dtregister")
=== false) && (strpos($_SERVER["REQUEST_URI"], "com_dtdonate") === false) && $_REQUEST!='com_dtdonate' &&
$_REQUEST!='com_dtregister' && $_REQUEST!='com_rsform')
{
// only rewrite the URL once, if you are already in https: mode
if ($_SERVER == 443)
{
if($_SERVER=='POST'){
}else{
header( 'Location: [url=http://']http://'[/url] . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
}
}
}
?>
Regards Jan