Using a Shared SSL with WordPress

Using a Shared SSL with WordPress

Most shared hosting companies offer a shared SSL with their packages. While shared SSL is of no use for your main website, as it will come under a sub-domain of your hosting provider, it is however ideal for your sites “admin” section. If hosted with us it would be in the form and will be mapped to the public_html folder in your website.

You used to be able to run WordPress on multiple domains however in more recent versions if you run the dashboard under a different domain (like with a shared SSL) the preview doesn’t work when editing pages and articles…you get a permission denied error when you try.

I happened to come across a plugin called “HTTPS domain alias” by Seravo Oy. As far as plugins are concerned it requires some configuration but not much. To get this Plugin working you can install it via the Plugins section within your Console. Once installed all you need to do is add the following to your wp-config.php file:

define('FORCE_SSL_ADMIN', true);
define('FORCE_SSL_LOGIN', true);
define('HTTPS_DOMAIN_ALIAS', '');

Once you’ve added the above to the file activate the module and now you should be able access the admin section securely and also be able to preview your changes before they go live.

Leave a Reply