Welcome to TagMyCode
to add a snippet.
WP Admin .htaccess ajax.php fix
AuthUserFile /dev/null AuthGroupFile /dev/null AuthName "Access Control" AuthType Basic order deny,allow deny from all #IP address to Whitelist allow from "my IP" # Allow acces to wp-admin/admin-ajax.php <Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files>
: Sep 23, 2013 8:32 AM
Copy to clipboard
#IP address to Whitelist
# Allow acces to wp-admin/admin-ajax.php
2 years ago
Hey, what does this fix? I was hoping maybe it would help with a problem I'm having with Woocommerce and admin-ajax.php slowing down the site.
2 years ago
Are you using any security plugin that restricts access to your wp admin directory? If so, that may be your issue with the site slowing with Woocommerce. At checkout, Woocommerce accesses your admin-ajax.php, which resides in the wp-admin directory. This little snippet basically allows for access to the file. Just add it to your htaccess file in the wp admin.
Write a comment
To post comments, please log in or register.
Copy and paste one of these codes into your web page
<iframe src="https://tagmycode.com/embed/iframe/1122" style="width:100%;border:none;"></iframe>