• Ben

    (@benrecords)


    Hi,

    I’m getting 302 redirects from admin-ajax.php calls to my website home page.

    I read on another topic that custom admin-ajax.php path could lead to that behaviour. But I didn’t change the admin-ajax.php url and still get the redirect (even after clearing cache).

    Is it normal as I changed the wp-admin path (not in the Ajax Security section) ?

    Is it possible to hide wp-admin and still get admin-ajax.php to work ?

    Thanks for your help

    • This topic was modified 1 year, 1 month ago by Ben.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Peter

    (@petersquirrly)

    Hi Ben,

    Thank you for reaching out!

    Please go to Change Paths > Ajax Security and enable the Hide wp-admin from Ajax URL option.

    Let us know if you still get any errors after doing this.

    Thread Starter Ben

    (@benrecords)

    Hi Peter,

    Thanks for your answer. I tried it but it didn’t change my 302 redirect problem.

    Finally, I set a custom admin-ajax URL and it worked. So I keep my new ajax url as it seems to work with all my plugins.

    Thanks for your help

    Plugin Support Peter

    (@petersquirrly)

    Great to hear that it’s working now!

    If anything else comes up, we are one reply away.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘admin-ajax.php redirect’ is closed to new replies.