Welcome to TagMyCode

Please login or create account to add a snippet.
Language: Apache
Posted by: Joseph Riviello
Added: Sep 23, 2013 8:32 AM
Views: 1880
Tags: no tags
  1. AuthUserFile /dev/null
  2. AuthGroupFile /dev/null
  3. AuthName "Access Control"
  4. AuthType Basic
  5. order deny,allow
  6. deny from all
  7. #IP address to Whitelist
  8. allow from "my IP"
  11. # Allow acces to wp-admin/admin-ajax.php
  12. <Files admin-ajax.php>
  13.     Order allow,deny
  14.     Allow from all
  15.     Satisfy any
  16. </Files>


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.
Joseph Riviello 8 years ago
Hi Michael,

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