my problem: If I attempt to access a https template through expression engine, I get a blank screen:
https://secure.domainname.com/anyTemplateGroup/anyTemplate
Solved by host (finally found this on their website, their support desk never mentioned it!)
https://secure.domainname.com You can use a different prefix, eg "www." or "store."
Solution: I will get host to change prefix to www.
Thanks everyone!
Just in case anyone comes across this problem, here are some details of what was going on:
FACT 1: The EE site url is as follows, and I can access all my templates like a normal site.
http://www.domainname.com
FACT 2: I have an SSL certificate installed and my host provides access using https and a prefix, but 'secure' is not a subdomain, it just points to files in the same path as http://www.domainname.com:
https://secure.domainname.com
FACT 3: Within the site I have a few forms that I'd like to make secure using SSL such as:
http://www.domainname.com/login
FACT 4: But with my host the above URL needs to be:
https://secure.domainname.com/login
FACT 5: Im using Focus Lab, LLC Master Config, so my config file reads as:
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
$base_url = $protocol . $_SERVER['HTTP_HOST'];
$env_config['base_url'] = $base_url . '/';
$env_config['site_url'] = $env_config['base_url'];
FACT/CLUE 6: If I disable EE's htaccess in the root off the www folder, I can launch a test file located at www/test/phpinfo.php as, but this is not what I want, as this is not an EE page, just something created in dreamweaver:
https://secure.domainname.com.au/test/phpinfo.php
FACT/CLUE 7: With htaccess enabled again I cannot access the above file (I get blank screen), but I can access it via:
http://www.domainname.com/test/phpinfo.php
POSSIBLE CAUSE OF ISSUE I looked at changing values in the config and htaccess, but nothing has given me access to the EE template via https. The main problem appears to be with the prefix secure Other users of EE + https do not appear to have the 'secure' prefix as part of URL, but someone must know how to overcome.
Thanks, Lloyd
www.domainname.com.au
? That would be the preferable solution, and if they don't allow that, I would find a new host.