Skip to content

Instantly share code, notes, and snippets.

@jayllellis
Forked from RafaelFunchal/.htaccess
Created August 12, 2019 18:22
Show Gist options
  • Save jayllellis/8cdf45ad90b43aea0d9535a714c766a1 to your computer and use it in GitHub Desktop.
Save jayllellis/8cdf45ad90b43aea0d9535a714c766a1 to your computer and use it in GitHub Desktop.
Exclude the files ajax, upload and WP CRON scripts from authentication
# Exclude the files ajax, upload and WP CRON scripts from authentication
<FilesMatch "(admin-ajax\.php|media-upload\.php|async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
Order allow,deny
Allow from all
Satisfy any
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment