If you are using Domain Mapping plugin doing this will quickly achieve exactly what you are asking for.
-
Go to: YOURDOMAIN/wp-admin/tools.php?page=domainmapping
-
Under: Excluded pages, check: Force SSL for all pages.
-
Save and you’re done.
Your insecure mixed content error due to admin-ajax.php loading via http instead of via https should be gone after this.
Related Posts:
- SSL breaks customizer: page isn’t returned from ajax
- AJAX requests broken due to HTTPS for wp-admin
- Images loading over http instead of https
- How do you redirect HTTPS to HTTP?
- Why is WordPress redirecting from http to https on a local environment?
- Force HTTPS using .htaccess – stuck in redirect loop
- Detecting post type within init action
- How to redirect url requests to https? [closed]
- WordPress redirect loop on nginx + apache reverse proxy
- Mixed Content with SSL, wordpress behind a reverse proxy
- https multiple redirects
- WordPress Redirecting HTTPS Requests to HTTP
- Infinite loop behind SSL proxy on non-standard port
- Force redirect not logged in user to (wp-login.php or wp-admin) for specific page
- What is the right way to redirect all traffic to HTTPS?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- How can I set cookies on both secure and non-secure origins at the same time?
- Too many redirects after added SSL redirect on port 80 virtual host
- ReDirect subfolder link to another sub-folder and force SSL
- Ajax login without redirect/reload
- Force redirect single.php to index
- Get returned URL from wp_remote_post if response code is 302
- Why does check_ajax_referer give a 403 error on https websites?
- WordPress CSS/Theme gone after SSL got activated
- My site doesn’t redirect from HTTP to HTTPS
- Only execute function if SSL is set up properly
- HTTPS to HTTP rewrite rules not working as expected
- I get “too many redirects” problem when migrating localhost site
- Moving site from HTTP to HTTPS
- Usage of wp_send_json_success and wp_redirect at the same time
- How to force HTTP and stop SSL completey on WordPress website
- Using Ajax with a Class file
- Stop admin-ajax?
- Local version of a WordPress site – SSL/HTTPS enforced?
- How to verify nonce from Bulk/Quick Edit in save_post?
- store/cache ajax sent data to avoid repeated request
- wp_ajax_[service] returning 0
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Trying to load content of a post via AJAX
- Insert Post using Ajax
- How can I automatically login using a URL?
- Run again current query via ajax but changing a var
- Problems with creating sortable sections in customizer
- Filter WP user acf field by ajax
- Ajax Request not coming back to class
- Ajax requests with different WordPress Address and Site Address setup
- SSL: How to make customizer images Protocol Relative in WordPress?
- query vars in url work but not in ajax call
- is_home doesn’t affect content
- https redirect (with .htaccess) redirect loop
- How to declare a JS variable in an AJAX call
- is_page() conditional not working inside an AJAX function
- jQuery Ajax passing empty parameters to my function?
- Convert this relative path to absolute
- Load WP content with ajax less server demanding and faster than normal page loading?
- admin-ajax.php slow website, how to fix
- WP Admin AJAX Security – using POST to include a relative URL
- Https Redirect infinite loop in Mobile browsers
- ajax nonce verification failing
- admin-ajax.php ” Missing argument 2″ warning
- Update get_pages using ajax on form select change
- How to create an ajax endpoint without js?
- get_queried_object_id in AJAX
- Making an ajax request from a different domain
- Jetpack “Connect to WordPress” serving insecure content under HTTPS
- Pagination Using ajax
- wp_ajax_ works fine but wp_ajax_nopriv_ returns HTML and not calling function
- Why is wp_localize_script returning false?
- Change header.php after ajax call
- WordPress – admin-ajax.php returns 502 Bad Gateway [closed]
- Using admin-ajax prevents regular php form submission
- WordPress is creating nonce as a logged in user but verifying it incorrectly
- ERR_TOO_MANY_REDIRECTS on wordpress page [closed]
- ajax refresh to display new posts
- wp_ajax action is not run when ajax trigger
- Replace link with form to pass variables to javascript / ajax
- Can I use application/json content type in WordPress
- How to pass value from ajax to php in no conflict mode?
- What is the relationship between UFW (firewall) being enabled and cron job running?
- Hook after all metadata are set is triggering several time
- Ajax show custom post data form & script
- Portfolio list view after clicking back button
- delete post meta data in array WordPress
- Using AJAX on Contact-form the WordPress way
- Error while submitting form using AJAX and php
- AJAX call in backend results in empty update_option
- Ajax Comment: Page reloads whenever the comment submission form is reloaded
- My site thinks it’s secure when it is fact not
- How to fetch meta_value and meta_key in matrix after ajax request by post_id
- get_comments() returns empty array if called through AJAX
- My WordPress site SSL is in red crossed color and can’t load at first time?
- Serve HTTPS requests from subdomain
- register_setting and AJAX?
- How to get parent comment’s id?
- ajax response is 0 instead of ‘script’ [duplicate]
- A refreshless WordPress website
- Dynamic dependent select box getting null value
- get_template_part() does not render after the ajax request
- How to force or redirect to SSL in nginx?
- Run PHPMailer function after ajax function completes that adds row to custom table