1) Using Apache .htaccess (this can also be put in the httpd.conf if you don’t use .htaccess files):
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/directory(.*)$ https://%{HTTP_HOST}/directory$1 [L,R]
2) Using phpMyAdmin’s config.inc.php file:
** place this at the end of the file somewhere
$cfg[‘ForceSSL’] = true;