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


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 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:


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


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 = '';

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 ^(.*)$$1 [R,L]

Change "" to your domain name.


<IfModule mod_rewrite.c>
RewriteEngine On


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

See Also