ajax loading issue with SSL
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.
Can you please advise how I can resolve this via a child theme edit?
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.
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)?
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:
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.