Welcome! To use this support forum, please Login or Join Today!

   

ajax loading issue with SSL

{name}
Rank

Total Posts: 27

Joined 2012-10-09

PM

 

I have a problem with AJAX failing for my membership plugin (MemberMouse) because the theme is loading the WordPress admin-ajax.php from a different domain from what my SSL certificate is on. Because this file is being blocked MemberMouse can’t use AJAX.

The problem here is that WordPress’ admin-ajax.php is being loaded from https://www.mydomain.com instead of https://secure.mydomain.com.

Can you please advise how I can resolve this via a child theme edit?

Thanks

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

Hi, You may need to get a wildcard SSL. If the subdomain has the SSL and WP is installed on a non-SSL domain (WWW) then it simply won’t work without a wildcard.

{name}
Rank

Total Posts: 27

Joined 2012-10-09

PM

 

Hi Casey, which file in the theme is loading the admin-ajax.php file? Is it possible to set up a conditional load where it is only loaded from the “secure” subdomain when on the checkout page (the only page using that subdomain)?

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

admin-ajax.php is loaded by WordPress. It’s not a theme-specific thing. You may want to look into a plugin such as this one:
http://wordpress.org/plugins/wordpress-https/

In reference to your original question, unless a wildcard SSL is used, you won’t be able to access subdomains under SSL. Your SSL considers WWW and SUBDOMAIN as two entirely different sites.