简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM