I'm setting up my first Wordpress site, and having a bit of an issue with SSL in the admin. I've got my certificate, and added define('FORCE_SSL_ADMIN', true);
to the appropriate place in wp-config.php
When I log into the admin via the https link, it works, but Chrome tells me that certain resources are not secure. Using the Chrome Developer Tools, I found it was the following:
The page at https://{mysite}/wp-admin/options-general.php?settings-updated=true displayed insecure content from http://{mysite}/wp-content/plugins/the-events-calendar/resources/events.css?ver=1.6.5.
The page at https://{mysite}/wp-admin/options-general.php?settings-updated=true ran insecure content from http://{mysite}/wp-content/plugins/the-events-calendar/resources/events.js?ver=3.1.1.
Looks like the "The Events Calendar" plugin doesn't quite respect the SSL setting.
I've tried configuring both WordPress address (URL)
and Site address (URL)
in the admin to https://{mysite}
, and while this fully fixes the problem in the admin, it then causes similar secure content errors on the main site. I don't particularly want the main site running via SSL, so I'm not a fan of this option.
The site is installed at Dreamhost, using their "one-click install" system. The .htaccess file it created is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I have a feeling that the proper fix will require modifying the .htaccess, but I'm a little hesitant to do that as I don't want to potentially break the automatic update system that Dreamhost has for Wordpress sites.
Thanks in advance.
EDIT:
The "WordPress HTTPS" plugin seems to have solved all my problems.