Use a different domain for SSL


long time lurker – first time poster.

A client of mine has a website developed in CakePHP, and a wordpress blog installed in the /blog/ directory.

Let’s say the url of the main domain is, with the blog being

They don’t have their own SSL certificate so they use my companies. Let’s say the secure URL is

I have the following code in my wp-config.php file:

define('WP_SITEURL', '');
define('WP_CONTENT_URL', '');
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);

When I go to the /wp-login.php, it redirects me to the secure URL which is perfect.

However, when I log in to the secure site, WordPress tries to loads JavaScripts and styles from


Which causes problems because the main site doesn’t have a SSL certificate and as a result doesn’t load anything from

Is there anything else I’m missing?

Is the solution a .htaccess rule?
A rule which routed all “” to "“?

I’ll pay anyone $20 who can help me fix it. I’ve Google’d until my hearts content and I don’t know what else I can do.

Thanks so much!

Kingsley 2 years 2020-11-03T01:10:20-05:00 0 Answers 7 views 0

Leave an answer