We have a site with ssl certificate setup on the subdomain and we want to redirect a template group to that subdomain. So it would be secure.example.com.
I have been reading tutorials, but mostly they are focused on ee 1.6. I can’t find anything specific on 2.0.
This is what I have done: copied the index.php to the subdomain folder and changed these settings:
$system_path = '../../../public_html/system/';
$assign_to_config['template_group'] = 'my_secure_template_group';
$assign_to_config['template'] = 'index';
$assign_to_config['site_index'] = 'index.php';
$assign_to_config['site_url'] = 'https://secure.example.com/';My .htaccess is simply
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]And it works insofar as the template loads, but the css files don’t load, something is wrong with the paths. The paths to the css files are like this: /css/main.css (they aren’t css templates, just plain css files) and seems like they should load from example.com, but do not.
Any ideas about where I am going wrong or why this is happening?