WordPress error in ajax request of wp-admin/admin-ajax.php not found

Ive seen many questions on this issue but none of the suggestions have been helpful to me

This is my .htaccess in the root folder

 # BEGIN WordPress
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index.php$ - [L]
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Previously in my localhost it works but after installing it on a shared hosting the error occurs whenever an ajax request is performed

Ive checked that the file admin-ajax.php is there in the wp-admin folder

When i check on the network tab on the developer tools(chrome) am getting this

Request URL:https://mydomainname.com/wp-
 admin/admin-ajax.php
   Request Method:POST
      Status Code:404 Not Found

what could be wrong

Read more here: WordPress error in ajax request of wp-admin/admin-ajax.php not found

Leave a Reply

Your email address will not be published. Required fields are marked *