Be aware, the AJAX file admin-ajax.php
is in the wp-admin
directory too. So I guess your site is using AJAX to send requests in the background to the admin directory. Clicking it away lets the AJAX request fail, but the error isn’t displayed.
Change the .htaccess to:
AuthType Basic
AuthName 'YOUR_AUTH_NAME'
AuthUserFile PATH_TO_HTPASSWORD
<Files '*'>
Require valid-user
</Files>
<Files 'admin-ajax.php'>
Allow from all
Satisfy any
</Files>
Related Posts:
- Best collection of code for your .htaccess file [closed]
- Stop WordPress and Plugins from Overwriting .htaccess
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- Blog.php or how to display recent posts?
- index.php not loading in main folder of wordpress
- Admin-Ajax.php, SSL, Non-SSL
- WordPress site displaying 404 for any page apart from index
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Cant block wordpress readme files
- WordPress keeps deleting .htaccess file
- Prevent users from browsing through the media galleries
- .htaccess for wordpress in separate folder
- How to modify the .htaccess to force ssl on login and admin pages
- WordPress URL/Folder ReWrite using Htaccess
- .htaccess redirects no longer work
- Exclude subfolder from WP-redirect works with html but not php files
- Server crashed trying to restore wordpress multisite, images are not found pls help
- Create subdomain masking for each user in WordPress
- Redirect from different port to subdomain – htaccess
- Question with loading 403/ 404 error pages and htaccess
- WordPress Redirect 301 register page
- Only expose routes with prefix /wp-json on WordPress using Apache
- Why does a directive only work when it is included inside WordPress directives?
- .htaccess password protect all but one page
- Hardening wordpress: blocking /includes with htaccess
- Install a Network under a mapped domain
- htaccess – RewriteRule without redirect not working
- How to fix category url 404’s after category permalink change
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- WordPress: Adding Security
- How can I fetch the content of a post of my wordpress domain from an other domain?
- Redirect Specific Wildcard Subdomain to a specific URL on another domain
- Modify the .htaccess file
- WordPress site not working after move
- blocking access to all post/tag URIs via htaccess
- sitemap contains weird links and does not contain my pages [closed]
- want to rewrite an URL in wordpress
- Giving to wordpress it’s own directory cause login loop
- how to redirect 301 my old search query string to wordpress search query string?
- htaccess, site and staging in subdirectories
- Admin Panel Slowdown After SSL Verification
- WordPress category with 404 error
- How to block access to files without modifying .htaccess or ngnix config? [closed]
- Allow REST API over HTTP, the rest of the site forced to HTTPS
- where to add redirection rewriterule in .htaccess file?
- Trouble adding directory rewrite to htaccess under wordpress [closed]
- How do I apply friendly URL permalinks to a custom WordPress template?
- Conflict with Force SSL and Rewrite Rules
- create virtual subdomains for a bunch of urls on a site via .htaccess
- htaccess getting overwritten over and over = 404 error
- htaccess problem not being able to overwrite previous rules
- wordpress blog displaying blank pages [closed]
- Relative links stop working after moving wordpress site from hosting to localhost
- How to rewrite 404 to home page using htaccess?
- WordPress is rewrite my htacces file. I adding a font rule
- Redirect within wordpress template/plugin
- Redirect wrong links WordPress
- Centos 7.2 wordpress on going to /admin shows Forbidden You don’t have permission to access /wordpress/wp-admin/ on this server
- Multiple wordpress installations on same server
- Cannot access subdirectory subpages
- WordPress constantly running out of memory
- How can I create a smarter .htaccess file that will add a directory?
- WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required
- All navigation links on website redirect to same page
- Help with htaccess querystring rewrite
- WordPress is removing trailing slash
- Htaccess file reset automatically how to fix this issue
- Clone WordPress for testing on localhost (with Fiddler)
- Redirect default pagination page to template page’s pagination
- Force a 403 response to xml file in WordPress
- Redirect files in uploads directory if WordPress user not logged in
- Redirect wordpress site to www from non www on wordpress server
- Update htaccess in several WP sites at once
- Pretty Url not working on the server
- How to use slug with subdomain?
- Leverage browser caching
- Reversing domain ‘sharding’ with htaccess
- WordPress URL not working?
- WordPress Intercepting Requests To A File In Public HTML
- How to block wordpress admin by htaccess
- Htaccess remove dates from root site but not from subdomain
- .htaccess home configuration
- Installing wordpress on subdirectory 2 levels down
- htaccess conflict between WordPress and password protected subdirectory
- Cannot Override WordPress 404 for a Sub-Directory
- adding a rewrite rule in wordpress functions file
- Multisite permalinks for subfolder wordpress installation
- Missing visual editor after placing a redirect rule into the .htaccess file
- Using subdomain as primary domain
- Redirect not working
- Permanently Redirect WordPress Subfolder Blog to Subdomain on Another Server
- WordPress site not redirecting properly
- Add-on domain works in WordPress but links still lead to subdomain
- In a subdomain network, what .htaccess settings can I use to have WP ignore requests to one subdomain?
- htaccess rule to ignore specific subdomain [closed]
- .htaccess for Subdomain and Subfolder w/SSL
- Why my wp site always redirecting to the old website path..?
- Hiding wp-config.php via .htaccess on an install installed in another directory?
- How To Add CSP frame ancestors in WordPress Website? [closed]
- How do I modify each instance of setcookie?