Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Setting up DT Register with SSL

Setting up DT Register with SSL 16 years 5 months ago #1682

  • dthadmin
  • dthadmin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
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

  • dthadmin
  • dthadmin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
You can add code to your htaccess file to force the www if your ssl certificate is assigned to your domain with the www. It DOES matter.
RewriteBase /
# non-www to www
 RewriteCond %{HTTP_HOST} !^www\.YOURSITE\.com$
 RewriteRule ^(.*)$ http://www.YOURSITE.com/$1 [R=301,L]

Obviously, change YOURSITE to your domain name.
The topic has been locked.

Setting up DT Register with SSL 15 years 10 months ago #3052

  • dthadmin
  • dthadmin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
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
  • awdesign's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
we have installed SSL and the site is using dedicated IP.
But when we go to secure URL for DTRegister at;
https://www.domain.com/index.php?option=com_dtregister

we get "Security Information" error it says; This page contains
both secure and nonsecure items. Do you want to display the nonsecure items?

This happens only at IE, Firefox browser works fine.
I need your advice. Thanks for your help,
Lewis
The topic has been locked.

Setting up DT Register with SSL 15 years 9 months ago #3380

  • dthadmin
  • dthadmin's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
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

  • Jessica
  • Jessica's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
I\'m having the same problem. IE 6 and FF are fine but not IE7. I\'m at wits end on how to fix the issue.

Off topic question but why do the posts on this forum all break out of their designated space?
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.614 seconds