Page tree
Skip to end of metadata
Go to start of metadata

Overview

phpMyDirectory is designed to work with SSL certificates to secure specific areas on the website if one is installed.

Once a certificate is installed and set up the user area and admin area will automatically use a secure connection.

Discounted SSL Certificates

Discounted SSL certificates are available for purchase on the http://www.phpmydirectory.com website for all license holders.

Installation and Setup

Before a secure connection (SSL) may be used a certificate must be installed on the server for the domain name that phpMyDirectory is running under.

Shared Certificates

Shared certificates which do not use your domain name will not work.

To install an SSL certificate on your web server please contact your web host.

If you purchased an SSL certificate from us please see Installing Addons

Once a SSL certificate has been installed on the web server, open and edit the defaults.php file in a text editor.

Edit the line:

$BASE_URL_SSL = '';

Change it to include your secure domain name and path to where phpMyDirectory is installed.  Example:

$BASE_URL_SSL = 'https://www.phpmydirectory.com/demo';

If you would like your entire site to use SSL edit the line:

$BASE_URL = '';

Change it to include your secure domain name and path to where phpMYDirectory is installed.  Example:

$BASE_URL = 'https://www.phpmydirectory.com/demo';

If you wish to have ALL old http:// addresses redirect to the https:// version, edit the .htaccess file and add:

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Change "www.example.com" to your domain name.

After:

<IfModule mod_rewrite.c>
RewriteEngine On


Subdomain

If using a subdomain for your SSL domain, you will need to set the $COOKIE_DOMAIN setting in defaults.php to '.domain.com' to match your domain name so cookies will be properly set.

See Also