This thread will give you instructions for forcing DT Register to use a https secure url for your site. Various posts have been edited and deleted over time to clean this up and only give the data that is needed now.
UPDATE - please scroll to the bottom of this thread as the data contained in most of this thread is old and no longer necessary.
The topic has been locked.
Setting up DT Register with SSL
15 years 11 months ago #2776
Place this in the <head> area of your template and it will force DT Register and DT Donate both to use a https url and then kick back to a regular http when NOT in these components.
<?php
// toggle in and out of SSL
// check the URL for modules that need SSL
if ((strpos($_SERVER["REQUEST_URI"], "com_dtregister") > 0) || (strpos($_SERVER["REQUEST_URI"], "com_dtdonate") > 0 )|| $_REQUEST['option']=='com_dtdonate' || $_REQUEST['option']=='com_dtregister')
{
// only rewrite the URL once, if you are not in https: mode
if ($_SERVER['SERVER_PORT'] == 80)
{
if($_SERVER['REQUEST_METHOD']=='POST'){
}else{
header( 'Location: https://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
}
}
}
// check to see if https: is not required
if ((strpos($_SERVER["REQUEST_URI"], "com_dtregister") === false) && (strpos($_SERVER["REQUEST_URI"], "com_dtdonate") === false) && $_REQUEST['option']!='com_dtdonate' && $_REQUEST['option']!='com_dtregister')
{
// only rewrite the URL once, if you are already in https: mode
if ($_SERVER['SERVER_PORT'] == 443)
{
if($_SERVER['REQUEST_METHOD']=='POST'){
}else{
header( 'Location: http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
}
}
}
?>
The topic has been locked.
Setting up DT Register with SSL
15 years 9 months ago #3374
awdesign - your template or other extensions in your site must be calling in images, css, scripts, etc with absolute urls instead of relative. IE does not like that when using https and that is the reason for the message you are getting.
The topic has been locked.
Setting up DT Register with SSL
15 years 8 months ago #3703