JasonMortonNZ
JasonMortonNZ

Reputation: 3750

Using SSL certificate issue?

My hosting account has two folders for me to upload/installing websites onto:

  1. /httpdocs/
  2. /httpsdocs/

I have installed phpMyDirectory into /httpdocs/ and all works great. I have since purchased a SSL certificate and my webhost has installed this for me on my domain. My issue arises when I insert the base url for SSL in the default.php (settings file) as such:

$BASE_URL_SSL = 'https://www.mydomain.com';

I realise the problem is that I don't have my website installed in the HTTPS secure directory on my hosting account. Do I copy the content from /httpdocs/ to /httpsdocs/ or should I make a fresh installation only in the /httpsdocs/ directory?

Upvotes: 0

Views: 135

Answers (1)

deceze
deceze

Reputation: 521995

The standard solutions are to either

  1. symlink the necessary directories/files into the https directory, or
  2. use .htaccess rules to rewrite from the https directory to the http directory.

Which to use depends on what possibilities your host gives you.

Upvotes: 1

Related Questions